The qplot() function still works but was deprecated in ggplot 3.4.0. Check out ua-cam.com/video/ETbFdSvPwUw/v-deo.html to make boxplots using the powerful ggplot() function!
Hi! You can do side--by-side plots by including additional aesthetics like group, fill, or color. You might also consider faceting with facet_wrap or facet_grid.
This is the most direct way: qplot(x = factor(msleep$vore, levels = c("omni", "carni","herbi", "insecti")), y = msleep$sleep_total, geom = "boxplot") I'm producing a more complete explanation of factors in R right now.
Hi, when I do this my data isn't automatically grouped (on the y) - it makes one big box plot for all my groups (so instead of casein, horsebean etc I get one plot for feed but using my own data)
Hi! If I had to guess, I'd say that your data probably isn't in the correct (tidy) format. You may need to post your code on a Q&A site like stackoverflow to get specific help.
Hello, I have a data that includes sampling timeline (August/September vs October/November), count of bivalves and gastropods in 4 selected beaches, and I want to create two graphs of boxplots with x-axis (sampling events mentioned above) and y-axis (mean abundance of bivalves, mean abundance of gastropods) and for the boxplots that could be filled with the colors of the four selected beaches( which are green= Mayaguez, orange= Rincon, blue=Anasco and red=Cabo Rojo) do you know how can do this in R? Thank you
Hi! You could consider faceting to get side-by-side plots, or using both color and fill aesthetics to contrast the different categorical variables. I talk about some of these options in the second half of my vid on the ggplot() function: ua-cam.com/video/FAvESE3WC30/v-deo.html
Hi! I use the drop_na() function from {dplyr} to remove rows with NAs. Honestly, though, if you're doing anything beyond basic plots, you'll want to learn the ggplot() function, which is much more powerful: ua-cam.com/video/FAvESE3WC30/v-deo.html
Thanks for watching, Fasiha. This is a beginner's video, so I avoided all but the most basic tools. You can see something a bit more elaborate here: ua-cam.com/video/FDngvXOGstA/v-deo.html
The qplot() function still works but was deprecated in ggplot 3.4.0. Check out ua-cam.com/video/ETbFdSvPwUw/v-deo.html to make boxplots using the powerful ggplot() function!
Thank You
this helped a lot, I have to use Rstudio to make a t test and I have never in my life used it lmao
Yay! I'm glad it helped. I have a whole vid on t.test(), by the way:
ua-cam.com/video/oNpfjcIf2Es/v-deo.html
Thank you for this tutorial . It helped me .
Thank you!
This saved me! Massive thanks!
Glad to have helped!
Thank you for this, very helpful! ...
Thanks
Thank you for saving me! :)
Glad it helped!!
very easy and clear video to understand. can you give me some idea to make box plot with two factors trestments?
Hi! You can do side--by-side plots by including additional aesthetics like group, fill, or color. You might also consider faceting with facet_wrap or facet_grid.
@@EquitableEquations can you write commands for that?
For specific questions like this, consider the R4DS learning community, for instance on Slack.
how do we rearrange the boxes? very nice ..
This is the most direct way:
qplot(x = factor(msleep$vore, levels = c("omni", "carni","herbi", "insecti")), y = msleep$sleep_total, geom = "boxplot")
I'm producing a more complete explanation of factors in R right now.
How I can add min and max and average in the box plot representation???
Hi, when I do this my data isn't automatically grouped (on the y) - it makes one big box plot for all my groups (so instead of casein, horsebean etc I get one plot for feed but using my own data)
Hi! If I had to guess, I'd say that your data probably isn't in the correct (tidy) format. You may need to post your code on a Q&A site like stackoverflow to get specific help.
Hello, I have a data that includes sampling timeline (August/September vs October/November), count of bivalves and gastropods in 4 selected beaches, and I want to create two graphs of boxplots with x-axis (sampling events mentioned above) and y-axis (mean abundance of bivalves, mean abundance of gastropods) and for the boxplots that could be filled with the colors of the four selected beaches( which are green= Mayaguez, orange= Rincon, blue=Anasco and red=Cabo Rojo) do you know how can do this in R? Thank you
Hi! You could consider faceting to get side-by-side plots, or using both color and fill aesthetics to contrast the different categorical variables. I talk about some of these options in the second half of my vid on the ggplot() function:
ua-cam.com/video/FAvESE3WC30/v-deo.html
Hi, how can i remove na values of my data in qlot?
Hi! I use the drop_na() function from {dplyr} to remove rows with NAs. Honestly, though, if you're doing anything beyond basic plots, you'll want to learn the ggplot() function, which is much more powerful:
ua-cam.com/video/FAvESE3WC30/v-deo.html
Video is admirable but backspace or deleting commands are not workable ... not user friendly
Thanks for watching, Fasiha. This is a beginner's video, so I avoided all but the most basic tools. You can see something a bit more elaborate here:
ua-cam.com/video/FDngvXOGstA/v-deo.html
Thanks sir.. But i hv no IQ for programming. I m phD scholar writing up but its hard for me to draw graphs by using commands..
@@EquitableEquations Sir hard for me as biologist has no aptitude for programing commands and having biological data
@@fasihakhan5319 Again I am looking for two factors, can you just write command for two factors analysis. Thank for nice video.