Basics

Wojtek Kostelecki

2019-07-09

Overview

Use ezplot to quickly create presentation-ready charts that are also useful for exploratory data analysis. By default, ezplot functions aggregate multiple values of y for repeated categories of x, group, facet_y and facet_x.

Load data

library(ezplot)
df = ez_data()
head(df)
#> # A tibble: 6 x 11
#>   char  fct     num day        week       month       year year2 units
#>   <chr> <fct> <dbl> <date>     <date>     <date>     <dbl> <dbl> <dbl>
#> 1 A     X        10 2012-01-01 2012-01-01 2012-01-01  2012  2012 14.0 
#> 2 B     X        10 2012-01-01 2012-01-01 2012-01-01  2012  2012 14.6 
#> 3 A     Y        10 2012-01-01 2012-01-01 2012-01-01  2012  2012  6.59
#> 4 B     Y        10 2012-01-01 2012-01-01 2012-01-01  2012  2012  4.80
#> 5 A     Other    10 2012-01-01 2012-01-01 2012-01-01  2012  2012 12.3 
#> 6 B     Other    10 2012-01-01 2012-01-01 2012-01-01  2012  2012 15.9 
#> # ... with 2 more variables: value <dbl>, price <dbl>

line_plot

bar_plot