[R] Simple Boxplot Question- unexpected string constant error
MarquisDM
mszenteczki at gmail.com
Tue Feb 1 03:39:06 CET 2011
Hi everyone,
Sorry for the newbie question but whenever I enter the following code into r
it gives me an unexpected string constant in
"boxplot(Abs~Conc,ylab='Absorbency',xlab'Ethanol(%)'" error. I have tried
everything to eliminate it and have searched these forums to no avail, can
anyone tell me what to do to allow r to generate my boxplot for me? Here is
my code:
A=c(0.37,0.38,1.1,1.1,0.65,0.61,0.56,0.74,0.71,0.60)
B=c(0.66,0.63,0.85,0.9,0.8,0.9,0.8,0.8,0.41,0.49)
C=c(1.2,1.2,1.4,1.35,1.2,1.2,1.35,1.75,0.86,0.8)
D=c(1.1,1.2,1.2,0.8,1.1,0.85,0.94,1.4,0.88,0.63)
Abs=c(A,B,C,D)
Conc=c('0','0','0','0','0','0','0','0','0','0','20','20','20','20','20','20','20','20','20','20','30','30','30','30','30','30','30','30','30','30','40','40','40','40','40','40','40','40','40','40')
boxplot(Abs~Conc,ylab='Absorbency',xlab'Ethanol(%)')
--
View this message in context: http://r.789695.n4.nabble.com/Simple-Boxplot-Question-unexpected-string-constant-error-tp3250421p3250421.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list