This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Barplot With Standard Deviation Simple Data

I would like to known ways or different designs to plot a simple barplot with these data:

       sample  NOC-average   NOC-SD

         1M        1000       21
         2M        2000       23
         3M        3000       22
         4M        4000       43

y axis = NOC x axis = sample

Thank you very much.

Paper and pencil too :-)

2 answers

Not a specific answer but I was just reading these news articles from nature methods yesterday -

Points of Significance: Visualizing samples with box plots and Points of View: Bar charts and box plots

Hope this helps.

Using R:

#dummy data
dat <- read.table(text="
sample  NOC-average   NOC-SD
1M        1000       21
2M        2000       23
3M        3000       22
4M        4000       43",
                  header=TRUE)
#barplot
barplot(dat$NOC.average,
        names.arg=dat$sample)

To read on R barplots.

Log in to answer this question.