I am using Rstudio 4.2.1 every time I am searching for the library ("diamonds"); it shows that "Error in the library("diamonds") : there is no package called ‘diamonds’". Please help me to solve this...
Diamonds dataset is a part of the ggplot2 package. I guess, you tried to open the Diamonds dataset before installing/loading the ggplot2 package? Try this: 1. Type the code and run it: install.packages(“ggplot2”) 2. Load the ggplot library: library(ggplot2) 3. Load the dataset: data(“diamonds”)
Hi, thanks for watching the video! You should be able to install it using the command 'install.packages(ggpmisc)'. In my video "Introduction to ggplot in R" I discuss how to install a package if you want to look at that (about 35 seconds into the video).
@@peelingbackdata3907 could you please explain or do a video how to create two curves with correlation coefficient in one graph, in this video only one. If it is possible with p-value would be great! Thank you!
@@shohnazarhazratqulov6731 Hi yeah sure I would be happy to explain that! I will feature that at the end of my next video (which I should have out by the end of tomorrow).
@@peelingbackdata3907 Thank you, I have already created two linear lines in one graph, but after calculating R>2 (correlation coefficient) the legend of ggplot is deleted , please explain how to do legend with (or after) calculating of R>2, and separate R>2 for each linear lines