5 useful R tips from rstudio::conf(2020) - tidy eval, piping, conflicts, bar charts and colors

Last week I had the pleasure of attending rstudio::conf(2020) in San Francisco. Throughout the course of the week I met many wonderful people and learnt many things. This post covers some of the little tips and tricks that I learnt throughout the conference.

Rebecca Barter

Tip 1: Tidy evaluation Tip 2: Pipe into later arguments of a function using . Tip 3: Function conflicts workaround (no more dplyr::select()) Tip 4: geom_col(): you’ll never have to specify “stat = identity” for your bar plots ever again! Tip 5: Using show_col() for viewing colour palettes This was my second year attending rstudio::conf() as a diversity scholar (and my first time as a speaker), and I was yet again blown away by the friendliness of the community and the quality of the talks.

Rebecca Barter

Entering the tidyverse Piping: %>% Data manipulation: dplyr select: select columns filter: filter to rows that satisfy certain conditions mutate: add a new variable arrange: arrange the rows of the data frame in order a variable group_by: apply other dplyr functions separately within within a group defined by one or more variables summarise/summarize: define a variable that is a summary of other variables More dplyr functions Visualization: ggplot2 Adding geom layers More aesthetic mappings based on variables Other types of layers Histograms Boxplots Faceting Customizing ggplot2 Most people who learned R before the tidyverse have likely started to feel a nibble of pressure to get aboard the tidyverse train.