In this post we will learn how to color scatter plots using another variable in the dataset in R with ggplot2. Scatter plots are extremely useful identify any trend between two quantitative variables. However, often you have additional variable in a data set and you might be … [Read more...] about How To Color Scatter Plot by Variable in R with ggplot2?
Scatter Plot 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 … [Read more...] about Scatter Plot with Transparent Points Using ggplot2 in R
Simple Scatter Plot in R with ggplot2
Scatter plot is a great data visualization tool to visualize relationship between two quantitative variables. We will see an example to make a simple scatter plot in R with ggplot2. Let us first load the ggplot2 package. Let us create a data set and store it in a data … [Read more...] about Simple Scatter Plot in R with ggplot2