Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Plot mean and standard deviation by category

$
0
0

I'm trying to plot a plot with mean and sd bars by three levels of a factor.

(After two hours of searching on the internet, then checking the Rbook and Rgraphs book I'm still not finding the answer. I think this is because it is a very simple question.)

I have a simple data frame with three columns: my categories, mean, sd.

I would like to do a plot with the mean by category and its sd bars, just like this one (edit: link broken)

My dataframe looks like this

  color     mean.temp      sd        
  black     37.93431      2.267125        
  red       37.01423      1.852052        
  orange    36.61345      1.339032

I'm so sorry for asking this dumb question but I sincerely couldn't find any simple answer to my simple question.


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>