Graphs in R / ggplot2 – Diamonds

Part 2 – Scatterplot and additional plots

Scatterplot with smoothed line

Scatterplot with 3rd variable and based on smoothed line

x-axis = carat / y-axis = price / 3rd variable = clarity

 

To omit the grey zone around the amooth(ed) line : ad se= FALSE

 

Graphs in R / ggplot2 – Diamonds
Tagged on: