Skip to content

Commit

Permalink
ggplot fig
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidhuharp97 committed Dec 4, 2024
1 parent ca5c4d4 commit e0cf39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
"<span class='chapter-number'>12</span>  <span class='chapter-title'>Marginal Means and Contrasts</span>"
]
Expand Down

0 comments on commit e0cf39c

Please sign in to comment.