Hello Everybody!
I installed the ggplot2 package on r studio, but when I insert the code, only a gray screen appears. What is wrong? The code is:
ggplot(data=name of the data, x=column)
Thank You!
Hello Everybody!
I installed the ggplot2 package on r studio, but when I insert the code, only a gray screen appears. What is wrong? The code is:
ggplot(data=name of the data, x=column)
Thank You!
You haven't added anything to the plot. If you want to create, say, a histogram you would need ggplot(data = name of the data, aes(x = column)) + geom_histogram().
If you want a line plot you would need: ggplot(data = name of the data, aes(x = column, y = column)) + geom_line()
Perfect! Thank you so much
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.