Note that this command does not plot anything but a grey canvas yet. For example, to specify a plot using the cars dataset you can use: library(ggplot2) To create plots with ggplot2 you first need to load the package using library(ggplot2).Īfter the package has been loaded specify the dataset to be used as an argument of the ggplot() function. Start Quiz Specifying a dataset library(ggplot2)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |