Home > Net >  how to create this type of plot by 'ggplot2'
how to create this type of plot by 'ggplot2'

Time:06-07

[enter image description here][1]

[1]: enter image description here

CodePudding user response:

ggplot2 is basically used to create elegant data visualization using graphics.

Here is example:

library(ggplots2) 
ggplot2(dataset, aes(x='dataset_col1', y='dataset_col2')

here we get output of dataset_col1 (x axis) and dataset_col2(y-axis)

Before running this code, you need to download the package -> ggplot2 from the packages

  • Related