Ggplot is the most popular plotting extension to R and replicates many of the graph types found in the core plotting libraries. This course provides an introduction to the ggplot2 libraries and gives a practical guide for how to use these to create different types of graphs.

Here, hp is a continous variable, so ggplot2 uses the darkness of the color to indicate the value. However, if we use a categorical varibable or a factor (e.g. binomial variable), ggplot2 will use different colors to show different types.

Plotting PCA results in R using FactoMineR and ggplot2 Timothy E. Moore. This is a tutorial on how to run a PCA using FactoMineR, and visualize the result using ggplot2.

Add correlation coefficients with p-values to a scatter plot. Can be also used to add `R2`. stat_cor ( mapping = NULL ... If NULL, the default, the data is inherited from the plot data as specified in the call to ggplot(). A data.frame, or other object, will override the plot data. All objects will be fortified to produce a data frame.

The Hall-Yarborough correlation. Kenneth Hall and Lyman Yarborough used the hard-sphere equation as the basis for the equation of state. They tested the correlation with 12 reservoir gas reservoir systems up to Ppr as high as 20.5. The Standing-Katz chart only extends to Ppr=15. At that moment the Standing-Katz chart had 30 years of existance.