#50_basic_scatterplot_ggplot2#51_scatterplot_and_linear_model_ggplot2  #51_scatterplot_linear_model_with_CI_ggplot2

This is an introduction to scatter plot made using ggplot2.

Let’s make some data : 2 continuous variable X and Y.

Graph 1 : probably the easiest scatter plot you can draw :

Graph 2 : You can add a linear model on it. Add se=FALSE if you don’t want the confidence interval

Graph 3 : add the confidence interval around the trend


Not what you are looking for ? Make a new search !



Leave a Reply

Notify of