Plotting in R with ggplot
1
Prerequisites
2
Data preperation
3
Introduction to ggplot2
3.1
Creating the building blocks of the graph
3.2
Adding geom_objects
3.3
Making the plot visually more appealing
3.4
Let’s make the plot colorful
3.5
Change label fonts, color, angle etc
3.6
You can also create and save a theme for entire project
3.7
Changing colors manually and add error bars
4
Plotting using one variable at a time
4.1
Histograms- plots the distribution of a numerical variable
4.2
Bar plots
4.3
Ordering based on number of counts from lowest to highest
4.4
Adding percentages
4.5
pie chart
5
Multivariate plotting
5.1
Bar plot with categories, plot depth by cut
5.2
Bar plot with categories, side by side
5.3
Segemented bar plot, appealing viz
5.4
Scatter plot
5.5
Grouping using facets
5.6
Change facet labels
6
Publication style figures and saving
6.1
Time series
References
Published with bookdown
Plotting in R using ggplot
References