Dr. Padilla dives deep into the world of data visualization in R, focusing on specifying axis information using ggplot2. Learn the pros and cons of three distinct methods to set axis limits and customize your data presentation. Whether you're a beginner or have some experience in R, this tutorial offers valuable insights and techniques to enhance your data storytelling. Don't forget to subscribe for more data visualization tips and tutorials!
Prior video: • Mastering ggplot2 in R: Transform Your Dat...
Code for generating the data set used in this video:
set.seed(123)
df = data.frame(cbind(
cbind(
value1 = as.numeric(rnorm(20,0,1)),
value2 = c(rnorm(10,0,1),rnorm(10,0,3)))),
group = rep(c("A", "B"), each = 10))
00:00 Intro
00:19 Load Package
02:28 Limites
06:19 Coord_cartesian
08:09 Scale continuous
09:53 Breaks
12:00 Axis Name
12:32 Minor Breaks
13:10 Labels
Ggplot cheatsheet: https://github.com/rstudio/cheatsheet...
Dr. Padilla's Lab: https://vis.khoury.northeastern.edu/
Personal Site: http://www.lacepadilla.com/
Twitter: / lacepadilla
LinkedIn: / lace-padilla-27031939
The main source for R packages: https://cran.r-project.org/
Hadley Wickham's GitHub: https://github.com/hadley
RStudio Community: https://community.rstudio.com/