R shines! The 4th force is coming to visualize your data. By Oliver Engels & Gabi Münster

Size: px
Start display at page:

Download "R shines! The 4th force is coming to visualize your data. By Oliver Engels & Gabi Münster"

Transcription

1 R shines! The 4th force is coming to visualize your data By Oliver Engels & Gabi Münster

2 2 18/06/2016 David Postlethwaite

3 Say thank you to our Sponsors :

4 Microsoft Data Platform Visualization Toolsets

5 Microsoft Data Platform Visualization Toolsets For many years Microsoft has great visualization capacities included in the main BI tools: Excel End-User Focused (Chart Engine, VBA) Reporting Services IT-Pro Focused (Chart Engine,.Net) Power BI Self-Service End-User Focused (Chart Engine, Open Source 3DS [Java Script]) All tools are capable to handle most requirements in data visualization

6 of But now Microsoft can offer even more: Force Visualization

7 The 4th force of visualization

8 Our path for this session Hello R: a short introduction of the language and history Do it R: Introduction into the visualization capabilities Required: Visualization Best Practises practise: Best practise applied to R IntegRate: How das R work in Power BI and SSRS

9 Hello R! A short introduction of the language and history

10 Hello R! R is an open source (GPL) language and environment Most widely used data analysis software Flexible & extensible language Easy to create unique & beautiful visualizations CRAN has >7000 packages Is a dialect of language S (developed in 1976) Version in 2000 Actual Version (May 2016)

11 Hello R! Industry s choice for data science!

12 Hello R! Microsoft acquired Revolution Microsoft acquired Revolution Analytics in April 2015 Revolution Analytics provides: Revolution R Open (RRO) An enhanced R distribution. Distributed free under GPL Revolution R Enterprise (RRE) R-IDE based on Visual Studio isolated shell ScaleR functions optimized for parallel execution on Big Data & without memory limits of vanilla R functions DeployR that provides web services front-end for R scripts

13 Hello R! Microsoft is now a R company

14 Hello R! R in the Microsoft data platform: Azure ML Power BI SQL Server 2016 Microsoft R Server

15 Hello R! R is an interpreted language Mostly R is used through a command-line interpreter Like other scientific languages e.g. MATLAB, R supports matrix arithmetic R uses procedural programming with functions In some cases object-oriented programming is possible The capabilities of R are extended through user-created packages, which allow specialized statistical techniques, graphical devices, import/export capabilities etc These packages are developed primarily in R A core set of packages is included with the installation of R Nearly 8000 (May 2016) packages are available via the Comprehensive R Archive Network (CRAN)

16 Hello R: Data in R Data in R is handled in dataframes You apply data to a dataframe like this: Or you can access data from sources via specific R Libraries like RODBC or REXCEL:

17 Do it R! Introduction into the visualization capabilities

18 Plotting in R Base Plotting System plot (XY Plot) hist (Histogram) boxplot Always adding elements like: lines, points, text, axis, lattice Plots will be created in one functional call Good functionality, if you want to create more then one chart (like a Trellis Chart) ggplot2 ggplot2 is a more advanced library Very capable, but also sometimes quite complex

19 R-Graphic Power with GGPLOT2 One of the modern popular graphic libraries of R is GGPLOT2 by Hadley Wickham GGPLOT2 is based on the grammar of graphics (by Leland Wilkinson): Every graph can be build out of a basic set of elements A data set A set of visual marks that represent data points (geom) A coordinate system Visualization happens when you map variables of the data set against aesthetic properties Shorten the distance from mind to page (L. Wilkinson)

20 R-Graphic Power with GGPLOT

21 DEMO Introduction to GGPLOT2 in R Tools for Visual Studio

22 Why R? I can do all that stuff in SSRS or Power BI SSRS and PBI rock!

23 Capabilities of the MS data platform Reporting Services Enterprise Ready Pixel Perfect Broadcast Configuration Scalability Application Integration Power BI Self-Service Collaborative Easy to use Flexibel Fast deployment

24 Information Design: Best Practices Why? Improved quality Reduced reaction time Reduced costs IT Controlling Management Develop systems and provide data Analyze data and create messages Evaluate messages and make decisions Provide more readily understood analyses and reports Deliver new reports in shorter time Save time in the creation of reports and presentations Deliver clearer messages Answer questions more quickly Save time in the analysis of data Make better decisions make sound decisions faster Reduce time spend on trying to understand reports

25 Information Design: Best Practices How?

26 Information Design: Best Practices How?

27 Information Design: Best Practices How?

28 Challenges in the MS Data Platform Reporting Services Appropriate choice of report items Configure report items for non-standard behaviour Stay on top of configuration boundlessness Power BI Lack of configuration options for complex requirements Appropriate choice of custom visual Growing supply Implement on your own

29 DEMO Challenge? Not for R!

30 DEMO Information design: Mostly possible, but still a challenge!

31 Capabilities of R Pixel Perfect Atomic additive approach with GGPLOT2 and the grammar of graphics Annotation and complex graphics can be achieved easier with less workarounds Entry barrier is high but capabilities are even higher Reuse code fragments, libraries and create your own plotting functions to speed up the development process

32 Integrate R? Apply the 4th force to your Microsoft BI Stack Can I have it in SSRS and PBI?

33 IntegRate: Use R in SSRS and PBI R in Reporting Services can be used by the R Integration in SQL Server 2016 R Visuals are part of PBI since February 2016 release of PBI desktop

34 DEMO Get R in SSRS and PBI

35 Ressources R blog: Blog about cool possibilities of making SSRS doing what you want: Great blog and inspiration by Tom Martens from Hamburg on R and Hichert PowerBI custom visuals: International Business Communication Standards:

36 Questions? We ll be here for the rest of the day as well

37 Your feedback is important! Please let us know what you thought of this session