We want to know if tooth length depends on supp and dose. Ggboxplot(my_data, x = "dose", y = "len", color = "supp", # Color box plot by a second group: "supp" # Plot tooth length ("len") by groups ("dose") If(!require(devtools)) install.packages("devtools")ĭevtools::install_github("kassambara/ggpubr") Install the latest version of ggpubr from GitHub as follow (recommended): Here, we’ll use the ggpubr R package for an easy ggplot2-based data visualization. To use R base graphs read this: R base graphs. Two-way interaction plot, which plots the mean (or other summary) of the response for two-way combinations of factors, thereby illustrating possible interactions.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |