Snippets
Get first and last rows of a data frame – Snippet #85
Discover how to get first and last rows of a data frame with R
Snippets
Discover how to get first and last rows of a data frame with R
Snippets
Discover how to get a random sample of rows from a data frame with R
Snippets
Discover how to change the background color of a ggplot2 plot with R
Tutorials
geom_function() and as_function() offer an elegant and powerful solution to plot mathematical functions with ggplot2
Snippets
Discover how to rename legend items in a ggplot2 plot with R
Snippets
Discover how to draw a second geom_ from a different data frame in a ggplot2 plot with R
Snippets
Discover how to uninstall packrat in a RStudio project with R
Snippets
Discover how to reorder manually a discrete axis in a ggplot2 plot with R
Snippets
Discover how to change the direction of the legends in a ggplot2 plot with R
Snippets
Discover how to change if multiple legends are displayed in rows or columns in a ggplot2 plot with R
Snippets
Discover how to change the justification of multiple legends in a ggplot2 plot with R
Snippets
Discover how to change the justification of legend of a ggplot2 plot with R
Snippets
Discover how to change the position of the legend in a ggplot2 plot with R
Snippets
Discover how to hide a legend in the legend of a ggplot2 plot with R
Snippets
Discover how to combine multiple legends in the legend of a ggplot2 plot with R
Snippets
Discover how to change the title of a legend in a ggplot2 plot with R