i am unable to load the ggplot2 a warning sign is coming saying one or more packages to be updated are currently loaded restarting r is recommended i am restarting but again the same message is popping up
Sir, I have installed the ggplot2 package and done the library function on these but when trying to do a ggplot function code . I continually get an error saying could not find function "ggplot". Have tried updating all my packages but that has not helped. Please help....
Sir,I have installed the ggplot2 package and done the library function on these but when trying to do a ggplot function code . I continually get an error saying could not find function "ggplot". Have tried updating all my packages but that has not helped.Please help....
even after entering the code i am unable to get the title of the graph and the label to y axis
I have used str(mtcars).The answer is str(mtcars)'data.frame': 32 obs. of 11 variables: $ mpg : num 21 21 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 ... $ cyl : num 6 6 4 6 8 6 8 4 4 6 ... $ disp: num 160 160 108 258 360 ... $ hp : num 110 110 93 110 175 105 245 62 95 123 ... $ drat: num 3.9 3.9 3.85 3.08 3.15 2.76 3.21 3.69 3.92 3.92 ... $ wt : num 2.62 2.88 2.32 3.21 3.44 ... $ qsec: num 16.5 17 18.6 19.4 17 ... $ vs : num 0 0 1 1 0 1 0 1 1 1 ... $ am : num 1 1 1 0 0 0 0 0 0 0 ... $ gear: num 4 4 4 3 3 3 3 4 4 4 ... $ carb: num 4 4 1 1 2 1 4 2 2 4 ...Is there any other way of finding numerical variables .
When I run library(ggplot2) and library(dplyr) then only it is identifying %>%.How do we come to know which library is required for which command ?
when we make 2 graphs in one plot, the 2 plots sin and cos with their name appears; but I can only see sin name without cos name even after typing correct command. My plot names are not completely visible.
While executing the command of plotting x seq from -pi to pi with sin(x) I am getting the errorError in plot.new() : figure margins too large
I have two doubts..Would be grateful if you could clear that..1) what is the difference between ggplot and a simple scatter plot which we plot through plot command ? Whats the additional advantage we have over using ggplot instead of a scatter plot ?2) When we want to plot two graphs together..it has to be one plotted through plot and other through line ? Thanks
where is mtcars data. how to get it
ggplot(data = movies, mapping = aes( x = critics_score, y = audience_score),col = "blue")geom_point()only X and Y axis is drawn. but points are not drawn.
13735 visits
Outline:Define visualization About grammar of graphics- ggplot2 Use of the plot function Add labels to a plot Change the color and type of plot Plot two graphs in the same plot Add a legend to the plot About ggplot2 package Draw a scatter plot using ggplot2 function Save plots using ggsave function
Define visualization About grammar of graphics- ggplot2 Use of the plot function Add labels to a plot Change the color and type of plot Plot two graphs in the same plot Add a legend to the plot About ggplot2 package Draw a scatter plot using ggplot2 function Save plots using ggsave function
Show video info
Pre-requisite