Introduction to ggplot2 - Babraham Institute
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
- ggplot creating graphics logically בישראל
- ggplot2 introduc on and exercises university of glasgow
- data visualization stats and r
- r handouts 2019 20 data visualization with ggplot2 umass
- selecting the number of bins in a histogram a decision statistics
- a method for selecting the bin size of a time histogram
- ggplot2
- data visualization github pages
- introduction to ggplot2 babraham institute
- introduction to ggplot2 princeton university
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