diff --git a/docs/search.json b/docs/search.json index 3cfaf88..85ad90f 100644 --- a/docs/search.json +++ b/docs/search.json @@ -930,7 +930,7 @@ "href": "chapters/means-and-contrasts.html#graphical-display-of-emmeans", "title": "12  Marginal Means & Contrasts", "section": "12.7 Graphical display of emmeans", - "text": "12.7 Graphical display of emmeans\nThe results of emmeans() object can be plotted in two different ways.\nFirstly, we can use base plot() function in R.\n\nplot(m1)\n\n\n\n\n\n\n\nplot(m4)\n\n\n\n\n\n\n\n\nOr we can use ‘ggplot2’ library.\n\nggplot(cld3) +\n aes(x = V, y = emmean, color = N) +\n geom_point(position = position_dodge(width = 0.9)) +\n geom_errorbar(mapping = aes(ymin = lower.CL, ymax = upper.CL), \n position = position_dodge(width = 0.9),\n width = 0.1) +\n geom_text(mapping = aes(label = .group, y = upper.CL * 1.05), \n position = position_dodge(width = 0.9), \n show.legend = F)", + "text": "12.7 Graphical display of emmeans\nThe results of emmeans() object can be plotted in two different ways.\nFirstly, we can use base plot() function in R.\n\nplot(m1)\n\n\n\n\n\n\n\nplot(m4)\n\n\n\n\n\n\n\n\nOr we can use ‘ggplot2’ library. We can plot cld3 object in ggplot, with Variety on x-axis and estimated means of yield on y-axis. Different N treatments are presented in groups of different colors.\n\nggplot(cld3) +\n aes(x = V, y = emmean, color = N) +\n geom_point(position = position_dodge(width = 0.9)) +\n geom_errorbar(mapping = aes(ymin = lower.CL, ymax = upper.CL), \n position = position_dodge(width = 1),\n width = 0.1) +\n geom_text(mapping = aes(label = .group, y = upper.CL * 1.05), \n position = position_dodge(width = 0.8), \n show.legend = F)+\n theme_bw()+\n theme(axis.text= element_text(color = \"black\",\n size =12))\n\n\n\n\n\n\n\n\nRecall: groups that do not differ significantly from each other share the same letter.", "crumbs": [ "12  Marginal Means and Contrasts" ]