![]() ![]() These results would lead us to believe that changing delivery methods (supp) or the dose of vitamin C, will impact significantly the mean tooth length. dose is the most significant factor variable. res.aov2 F)ĭose 2 2426.4 1213.2 82.81 F) corresponding to the p-value of the test.įrom the ANOVA table we can conclude that both supp and dose are statistically significant. The function summary.aov() is used to summarize the analysis of variance model. The R function aov() can be used to answer this question. 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. |