Introduction to ggplot2
Introduction to GGplot2
Anne Segonds-Pichon, Simon Andrews
v2021-09
Plotting figures and graphs with ggplot
? ggplot is the plotting library for tidyverse
? Powerful ? Flexible
? Follows the same conventions as the rest of tidyverse
? Data stored in tibbles ? Data is arranged in 'tidy' format ? Tibble is the first argument to each function
Code structure of a ggplot graph
? Start with a call to ggplot()
? Pass the tibble of data (normally via a pipe) ? Say which columns you want to use via a call to aes()
? Say which graphical representation (geometry) you want to use
? Points, lines, barplots etc
? Customise labels, colours annotations etc.
Geometries and Aesthetics
? Geometries are types of plot
geom_point()
Point geometry, (x/y plots, stripcharts etc)
geom_line()
Line graphs
geom_boxplot() Box plots
geom_col()
Barplots
geom_histogram() Histogram plots
? Aesthetics are graphical parameters which can be adjusted in a given geometry
Aesthetics for geom_point()
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- enrichplot visualization of functional enrichment result
- 03 intro to graphics with ggplot2
- introduction to ggplot2
- data display in r for repeated measurements
- exercises introduction to ggplot2 babraham institute
- intro to graphics with ggplot2 github pages
- visualización de datos geoms rstudio
- qplot r graphics cheat sheet github pages
- cummerbund analysis exploration manipulation and
- chapter 2 r ggplot2 examples
Related searches
- introduction to financial management pdf
- introduction to finance
- introduction to philosophy textbook
- introduction to philosophy pdf download
- introduction to philosophy ebook
- introduction to marketing student notes
- introduction to marketing notes
- introduction to information systems pdf
- introduction to business finance pdf
- introduction to finance 15th edition
- introduction to finance books
- introduction to finance online course