[enter image description here][1]
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