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
- introduction to ggplot2
- ggplot2 tutorial rxjs ggplot2 python data persistence
- an introduction to r graphics part ii ggplot2
- tutorial ggplot2
- chapter 2 r ggplot2 examples
- metacoder an r package for visualization and manipulation
- visualization of titrated dose and recurrent events using
- article type focus article ggplot2 593 hadley
- ggalluvial layered grammar for alluvial plots
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