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 .
At last I've seen the light!!!! So thankful to have come across this video! Now I wont fail my class haha
This video is as amazing as R itself. Thank you !
Thank you. Good tutorial on ggplot for beginners!
Thanks a lot Mr. Mohammad. It was very helpful
Thank you so much for this video! You explain very good... keep it up👍😉
best explanation of ggplot . Thank you so much
Perfect explanation! I do appreciate your nice video :)
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
This was what I thought also.
Thanks for the explanation! You made my day.
Great work, thank you!
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.
That is an absolutely valid point. Thanks for your feedback.
Awesome! I learnt a lot. Thank you
you can access the slides from here: drive.google.com/file/d/1biwZi04XFmuV1jgvQAUtcXbSQLJO6O8D/view
Thanks very much for this excellent lecture. The link to the slide isnt working. It says page not found. Please help
Hi,
Thank you so much for this tutorial. Could you please prepare a video for the forest plot? It would be a great help.
funkcia=function(a,b,c,n){
vector=a:n
dlzka=length(vector)+1
pomvekt=vector()
i=0
while(i!=dlzka+1){
pomvekt[dlzka-i]=vector[i]
i=i+1
}
print(pomvekt)
i=0
for(i in 1:length(pomvekt)){
if(pomvekt[i]==b){
pomvekt[i]='B'
print(pomvekt[i])
}else if (pomvekt[i]==c){
}else{
print(as.numeric(pomvekt[i]))
}
}
}
funkcia(2,4,6,10)
install.packages("RMySQL")
install.packages("DBI")
library(RMySQL)
library(DBI)
#genDB = dbConnect(MySQL(),user="genome", host="genome-mysql.cse.ucsc.edu") # vytvorenie spojenia
#DB = dbGetQuery(genDB,"show databases;") # uk??ka dab?zy
#dbDisconnect(genDB) # ukon?enie spojenia
cb1
Thank you for your contribution. Can you share me file? The given link file not found.
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
i love u brother
sir, drive isn't working now. how can i get the slide?
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.
Thanks for the tutorial. Is there a reason you are using as.character() instead of as.factor() to convert continuous variables into discrete?
good point!! No preference, both works. I think as.factor() would make more sense.
Thank you so much
Hi, i couldn't download this script, it's saying it's invalid. Can you please send it to me. Thank you so much.
Hi, do you know how to label the value of each bar in ggplot2 bar graph?
stackoverflow.com/questions/12018499/how-to-put-labels-over-geom-bar-for-each-bar-in-r-with-ggplot2
Hi, how can one access the slides in the video. really nice video. Thank you
Hi gbenga, I can email it to you if you provide your email. Thanks
you can access the slides from here: drive.google.com/file/d/1biwZi04XFmuV1jgvQAUtcXbSQLJO6O8D/view
Hey Mohammad, is it possible for you to send the slides ? N I found this sessional really useful . Thanks for the amazing work.
Sure, I can email it to you if you provide your email address.
you can access the slides from here: drive.google.com/file/d/1biwZi04XFmuV1jgvQAUtcXbSQLJO6O8D/view
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")
It works , thank you Ma Th
ggplot(mtcars, aes(mpg)) + geom_histogram(binwidth=5) + ggtitle("Distribucion de mpg") + xlab("kilometraje") + ylab("frecuencia")
Plz check the link for slides
Great work, can you also send me the slides? thanks so much!
please send me your email address.
Kindly send me the slides: davidnganga005@gmail.com
you can access the slides from here: drive.google.com/file/d/1biwZi04XFmuV1jgvQAUtcXbSQLJO6O8D/view
could you send me the slides as well? Thank you in advance!!
plz send me your email address.
abdelaziz_zariouh@hotmail.com
Oh please ..I need one too. phrompploy@myvuw.ac.nz
Hi @abdelaziz zariouh Can you please send me the slides sent by Mr Mohammad. Thanks in advance.
Email : c.roshan94@mail.com
you can access the slides from here: drive.google.com/file/d/1biwZi04XFmuV1jgvQAUtcXbSQLJO6O8D/view
I donot know from where I download and start the R
have you downloaded R on to ure computer?
@@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 .
Same I have Windows too .... go on Google and search download R
@@MyMrwrestling Haha, I can search by myself, why you have asked question? I was thinking you will be helping me.
@@Plantshealth I'm not sure what u need help in then ? .... do u have Skype .... add me ... Im happy to go through it with u
Watch a 1.5x or 2x
gesundheit @ 27:10