In order to come up with colors (30:53) you just need to convert the "cyl" column as a factor since 4, 6 and 8 are three fixed values which are essentially factors. This can be done by running the code: mtcars$cyl
Thank you for such a nice tutorial! May I suggest to replace "as.character(cyl)" with "as.factor(cyl)"? Although as.character still works, number of cylinder should be defined as factors in the dataframe.
I have to make a box plot. In that i have to show ratio between two types of cells. But my output in graph should be as - if ratio is 1 out put shall be zero, if ratio is greater than 1 let us assume 10/5= 2/1 it shall show value in box plot +2 or if value is 5/10 =1/2 the value shall be displayed as -2. Can you please guide me how to do this. I found such type of boxplot in a paper. Thanks in advance
Hi I am straggling to write R codes for the following statement my data set is for the first two statement is epldata and for the last statement is eplsummary any idea on what should I write for the codes? Create a visualisation showing the distribution of market value by playing position that highlights which position has the highest median value. Create a visualisation showing the distribution of player ages, facetted by position category. Create a visualisation of the distribution of Wikipedia page views for each player that highlights which club has the highest median number of page views.
Sorry if my english its not god I have a problem when i use this ggplot(mtcars,aes(mpg))+geom_histogram(binwidth=5)+ggtitle("Distribucion de mpg")+xlab="kilometraje"+ylab="frecuencia" this is the problem Error in ggplot(mtcars, aes(mpg)) + geom_histogram(binwidth = 5) + ggtitle("Distribucion de mpg") + : could not find function "+
Hey, I get the same error. If you run the following line of code, though, it works. Maybe the version changes affected the xlab and ylab commands. ggplot(mtcars,aes(mpg))+geom_histogram(binwidth=5)+ggtitle("Distribucion de mpg")+labs(x="kilometraje", y="frecuencia")
@@MyMrwrestling Sir, I am very sorry, I donot have R as the operating system is window, laptop is core i 5, ram 8 gb and 500 Gb harddisk, from where I can download the R and associated plug in .