Skip to content

calculating standard deviation and variance

2 messages · johnhj, David Freedman

#
Hiii,

I have some problems to plot "standard deviation and variance" from a
texfile.

Ich have the following code so far:

x <-read.table(file="new.txt")   

x$gruppe <- 100*rep(1:36, each=20)

png(filename = "D:/Uni/new.png", width = 640, height = 480,pointsize = 12,
bg = "white")

boxplot(V3 ~ gruppe, data = x, col = "blue",boxwex=0.7,ylab
="Datenrate(MBit(sec))",xlab = "Zeit(sec)")

dev.off() 

My question is, how can I plot the standard deviation and variance of
"x$gruppe <- 100*rep(1:36, each=20)"

Can anybody help me please ?

greetings,
johnh
#
The gplots package might help.  Try:

library(gplots)
data(state)
plotmeans(state.area ~ state.region) 

hth,
David Freedman
johnhj wrote: