GGplot: Prism style
Barplot
Data Prepare
This code would use the inner data set chickwts
as example to calculate the mean value and sd value to use as bar height and error bar
|
Data chickwts
:
weight feed 1 179 horsebean 2 160 horsebean 3 136 horsebean 4 227 horsebean
Data frame after converted:
# A tibble: 6 × 3 feed mean sd1 casein 324. 64.4 2 horsebean 160. 38.6 3 linseed 219. 52.2 4 meatmeal 277. 64.9 5 soybean 246. 54.1 6 sunflower 329. 48.8
Plot the Plot and Define the Theme
|
GGplot: Prism style