ggplot2 offers 8 themes for making plots using ggplot2. By default, ggplot2 uses the grey theme. Here, we will examples of how to change the plot theme from the default grey ggplot2 theme. Let us first make a simple scatter plot with default grey ggplot theme Let us create data frame with two variables to… Continue reading How To Change ggplot2 theme?
Tag: ggplot2
Scatter Plot with Transparent Points Using ggplot2 in R
Scatter plot is a great way visualize the relationship between two quantitative variables. However, scatter plot can suffer from over-plotting of data points, when you have lots of data. Overplotting plots multiple overlapping data points. One of the solutions to avoid overplotting is to set the transparency levels for data points using the argument alpha… Continue reading Scatter Plot with Transparent Points Using ggplot2 in R