ggplot2 error bars : Quick start guide - R software and data visualization
Add error bars to a bar and line plots Prepare the data Barplot with error bars Line plot with error bars Dot plot with mean point and error bars Infos This tutorial describes how to create a graph...
View Articleggplot2 themes and background colors : The 3 elements
Prepare the data Example of plot Quick functions to change plot themes Customize the appearance of the plot background Change the colors of the plot panel background and the grid lines Remove plot...
View Articleggplot2 scatter plots : Quick start guide - R software and data visualization
Prepare the data Basic scatter plots Label points in the scatter plot Add regression lines Change the appearance of points and lines Scatter plots with multiple groups Change the point...
View Articleggplot2 - Essentials
#rdoc .course_material a{font-size:18px;} Introduction ggplot2 is a powerful and a flexible R package, implemented by Hadley Wickham, for producing elegant graphics. The concept behind ggplot2 divides...
View ArticleBe Awesome in ggplot2: A Practical Guide to be Highly Effective - R software...
Basics ggplot2 is a powerful and a flexible R package, implemented by Hadley Wickham, for producing elegant graphics. The gg in ggplot2 means Grammar of Graphics, a graphic concept which describes...
View Articleggplot2 area plot : Quick start guide - R software and data visualization
Prepare the data Basic area plots Change line types and colors Change colors by groups Calculate the mean of each group : Change fill colors Change the legend position Use facets Contrasting bar plot...
View Articleqplot: Quick plot with ggplot2 - R software and data visualization
Data format Usage of qplot() function Scatter plots Basic scatter plots Scatter plots with smoothed line Smoothed line by groups Change scatter plot colors Change the shape and the size of points...
View Articleggplot2 ECDF plot : Quick start guide for Empirical Cumulative Density...
Create some data ECDF plots Customized ECDF plots Infos This R tutorial describes how to create an ECDF plot (or Empirical Cumulative Density Function) using R software and ggplot2 package. ECDF...
View Articleggplot2 - Easy way to mix multiple graphs on the same page
To arrange multiple ggplot2 graphs on the same page, the standard R functions - par() and layout() - cannot be used. The basic solution is to use the gridExtra R package, which comes with the...
View ArticleSaving High-Resolution ggplots: How to Preserve Semi-Transparency
This article describes solutions for preserving semi-transparency when saving a ggplot2-based graphs into a high quality postscript (.eps) file format. Contents: Create a ggplot with semi-transparent...
View Articleggplot2 axis scales and transformations
Prepare the data Example of plots Change x and y axis limits Use xlim() and ylim() functions Use expand_limts() function Use scale_xx() functions Axis transformations Log and sqrt transformations...
View Articleggplot2 line types : How to change line types of a graph in R software?
Line types in R Basic line plots Generate some data Create line plots and change line types Line plot with multiple groups Create some data Change globally the appearance of lines Change automatically...
View Articleggplot2 add straight lines to a plot : horizontal, vertical and regression lines
geom_hline : Add horizontal lines geom_vline : Add vertical lines geom_abline : Add regression lines geom_segment : Add a line segment Infos This tutorial describes how to add one or more straight...
View Articleggplot2 point shapes
Point shapes in R Create some data Basic scatter plots Scatter plots with multiple groups Change the point shapes, colors and sizes automatically Change point shapes, colors and sizes manually : Infos...
View Articleggplot2 line plot : Quick start guide - R software and data visualization
Basic line plots Data Create line plots with points Line plot with multiple groups Data Create line plots Change line types by groups Change line colors by groups Change the legend position Line plot...
View Articleggplot2 density plot : Quick start guide - R software and data visualization
Prepare the data Basic density plots Change density plot line types and colors Change density plot colors by groups Calculate the mean of each group : Change line colors Change fill colors Change the...
View Articleggplot2 texts : Add text annotations to a graph in R software
Install required packages Create some data Text annotations using geom_text and geom_label Change the text color and size by groups Add a text annotation at a particular coordinate annotation_custom :...
View Article