File:RbdGeom.png: Difference between revisions

From 太極
Jump to navigation Jump to search
(<pre> require(ggplot2) aggregate( .~ treatment +block,FUN=median, data = data) |> ggplot(aes(treatment, yield)) + geom_line(aes(group = block, color = block), linewidth = 1.2) + geom_point(aes(color = block), shape = 15, size=2.6) </pre>)
 
 
Line 6: Line 6:
   ggplot(aes(treatment, yield)) +
   ggplot(aes(treatment, yield)) +
   geom_line(aes(group = block, color = block), linewidth = 1.2) +
   geom_line(aes(group = block, color = block), linewidth = 1.2) +
   geom_point(aes(color = block), shape = 15, size=2.6)
   geom_point(aes(color = block), shape = 15, size=2.6) +
  ggExtra::removeGridX()  # Remove vertical grids but keep ticks on x-axis
</pre>
</pre>

Latest revision as of 22:39, 14 January 2023

Summary

require(ggplot2)

aggregate( .~ treatment +block,FUN=median, data = data)  |> 
  ggplot(aes(treatment, yield)) +
  geom_line(aes(group = block, color = block), linewidth = 1.2) +
  geom_point(aes(color = block), shape = 15, size=2.6) + 
  ggExtra::removeGridX()  # Remove vertical grids but keep ticks on x-axis

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current22:26, 14 January 2023Thumbnail for version as of 22:26, 14 January 2023500 × 500 (41 KB)Brb (talk | contribs)<pre> require(ggplot2) aggregate( .~ treatment +block,FUN=median, data = data) |> ggplot(aes(treatment, yield)) + geom_line(aes(group = block, color = block), linewidth = 1.2) + geom_point(aes(color = block), shape = 15, size=2.6) </pre>

The following page uses this file: