DATA VISUALIZATION IN R WITH GGVIS

Report 5 Downloads 193 Views
DATA VISUALIZATION IN R WITH GGVIS

Introduction

Data Visualization in R with ggvis

Data Visualization in R with ggvis

ggvis

Data Visualization in R with ggvis

ggvis

Data Visualization in R with ggvis

ggvis

Data Visualization in R with ggvis

ggvis

Data Visualization in R with ggvis

ggvis

Data Visualization in R with ggvis

ggvis

Data Visualization in R with ggvis

ggvis

Data Visualization in R with ggvis

ggvis

Data Visualization in R with ggvis

ggvis

Data Visualization in R with ggvis

ggvis

Data Visualization in R with ggvis

graph =

mtcars + cartesian + points + data

coordinate system

mark

fill = properties

+…

Data Visualization in R with ggvis

+

Analytic Power

Display abilities and interactivity

Data Visualization in R with ggvis

Data Visualization in R with ggvis

DATA VISUALIZATION IN R WITH GGVIS

Let's practice!

DATA VISUALIZATION IN R WITH GGVIS

Grammar

Data Visualization in R with ggvis

mpg

cyl

disp

hp

21.0 21.0 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 17.8 16.4 17.3 15.2 10.4 10.4 14.7 32.4 30.4 33.9

6 6 4 6 8 6 8 4 4 6 6 8 8 8 8 8 8 4 4 4

160.0 160.0 108.0 258.0 360.0 225.0 360.0 146.7 140.8 167.6 167.6 275.8 275.8 275.8 472.0 460.0 440.0 78.7 75.7 71.1

2 2 1 2 3 2 5 1 1 2 2 3 3 3 4 4 4 1 1 1

data

mark

coordinate system

Data Visualization in R with ggvis

properties fill mpg

cyl

disp

hp

21.0 21.0 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 17.8 16.4 17.3 15.2 10.4 10.4 14.7 32.4 30.4 33.9

6 6 4 6 8 6 8 4 4 6 6 8 8 8 8 8 8 4 4 4

160.0 160.0 108.0 258.0 360.0 225.0 360.0 146.7 140.8 167.6 167.6 275.8 275.8 275.8 472.0 460.0 440.0 78.7 75.7 71.1

2 2 1 2 3 2 5 1 1 2 2 3 3 3 4 4 4 1 1 1

data

mark

coordinate system

Data Visualization in R with ggvis

properties shape

fill

mpg

cyl

disp

hp

21.0 21.0 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 17.8 16.4 17.3 15.2 10.4 10.4 14.7 32.4 30.4 33.9

6 6 4 6 8 6 8 4 4 6 6 8 8 8 8 8 8 4 4 4

160.0 160.0 108.0 258.0 360.0 225.0 360.0 146.7 140.8 167.6 167.6 275.8 275.8 275.8 472.0 460.0 440.0 78.7 75.7 71.1

2 2 1 2 3 2 5 1 1 2 2 3 3 3 4 4 4 1 1 1

data

mark

coordinate system

Data Visualization in R with ggvis

properties shape

x

fill

mpg

cyl

disp

hp

21.0 21.0 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 17.8 16.4 17.3 15.2 10.4 10.4 14.7 32.4 30.4 33.9

6 6 4 6 8 6 8 4 4 6 6 8 8 8 8 8 8 4 4 4

160.0 160.0 108.0 258.0 360.0 225.0 360.0 146.7 140.8 167.6 167.6 275.8 275.8 275.8 472.0 460.0 440.0 78.7 75.7 71.1

2 2 1 2 3 2 5 1 1 2 2 3 3 3 4 4 4 1 1 1

data

mark

coordinate system

Data Visualization in R with ggvis

properties y

shape

x

fill

mpg

cyl

disp

hp

21.0 21.0 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 17.8 16.4 17.3 15.2 10.4 10.4 14.7 32.4 30.4 33.9

6 6 4 6 8 6 8 4 4 6 6 8 8 8 8 8 8 4 4 4

160.0 160.0 108.0 258.0 360.0 225.0 360.0 146.7 140.8 167.6 167.6 275.8 275.8 275.8 472.0 460.0 440.0 78.7 75.7 71.1

2 2 1 2 3 2 5 1 1 2 2 3 3 3 4 4 4 1 1 1

data

mark

coordinate system

Data Visualization in R with ggvis

properties y

shape

x

fill

mpg

cyl

disp

hp

21.0 21.0 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 17.8 16.4 17.3 15.2 10.4 10.4 14.7 32.4 30.4 33.9

6 6 4 6 8 6 8 4 4 6 6 8 8 8 8 8 8 4 4 4

160.0 160.0 108.0 258.0 360.0 225.0 360.0 146.7 140.8 167.6 167.6 275.8 275.8 275.8 472.0 460.0 440.0 78.7 75.7 71.1

2 2 1 2 3 2 5 1 1 2 2 3 3 3 4 4 4 1 1 1

data

mark

coordinate system

Data Visualization in R with ggvis

properties y

shape

x

fill

mpg

cyl

disp

hp

21.0 21.0 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 17.8 16.4 17.3 15.2 10.4 10.4 14.7 32.4 30.4 33.9

6 6 4 6 8 6 8 4 4 6 6 8 8 8 8 8 8 4 4 4

160.0 160.0 108.0 258.0 360.0 225.0 360.0 146.7 140.8 167.6 167.6 275.8 275.8 275.8 472.0 460.0 440.0 78.7 75.7 71.1

2 2 1 2 3 2 5 1 1 2 2 3 3 3 4 4 4 1 1 1

data

mark points lines

coordinate system

Data Visualization in R with ggvis

properties y

x

mpg

cyl

disp

hp

21.0 21.0 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 17.8 16.4 17.3 15.2 10.4 10.4 14.7 32.4 30.4 33.9

6 6 4 6 8 6 8 4 4 6 6 8 8 8 8 8 8 4 4 4

160.0 160.0 108.0 258.0 360.0 225.0 360.0 146.7 140.8 167.6 167.6 275.8 275.8 275.8 472.0 460.0 440.0 78.7 75.7 71.1

2 2 1 2 3 2 5 1 1 2 2 3 3 3 4 4 4 1 1 1

data

mark points lines bars

coordinate system

Data Visualization in R with ggvis

properties x fill

y mpg

cyl

disp

hp

21.0 21.0 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 17.8 16.4 17.3 15.2 10.4 10.4 14.7 32.4 30.4 33.9

6 6 4 6 8 6 8 4 4 6 6 8 8 8 8 8 8 4 4 4

160.0 160.0 108.0 258.0 360.0 225.0 360.0 146.7 140.8 167.6 167.6 275.8 275.8 275.8 472.0 460.0 440.0 78.7 75.7 71.1

2 2 1 2 3 2 5 1 1 2 2 3 3 3 4 4 4 1 1 1

data

mark points lines bars

coordinate system

Data Visualization in R with ggvis

graph = mtcars + cartesian + points data

coordinate system

mark

+

fill = properties

+…

Data Visualization in R with ggvis

DATA VISUALIZATION IN R WITH GGVIS

Let's practice!