[R] Plot creates a straigth line
1Rnwb
sbpurohit at gmail.com
Wed Oct 20 17:18:11 CEST 2010
Hello all, I am using 'plot' to create standard curves for elisa data. when I
use 'plot' with type='b' i get the points connected with lines and one
straigth line from the lowest datapoint to the highest data point. how can i
avoid/remove it from the figure. i am using R2.9.1, below is the example of
the data.
od<-c(10, 8, 6,4,2,1, 10.5,7.8,6.4,3.8,2.1,0.95)
cyto_conc=2650 # Highest cytokine concentration user defined
cyto_std_conc <-c(cyto_conc)
for (i in 1:5)
{
cyto_conc = cyto_conc /3
cyto_std_conc <-c(cyto_std_conc ,cyto_conc)
}
cyto_std_conc<-log2(rep(cyto_std_conc,2))
cyto<-cbind(cyto_std_conc,od)
plot(cyto_std_conc,od, type='b')
I have searched help using '?plot' in R as well as google, all the examples
which are available online gives me the plot the way it is shown in the
example. but when i use the plot for my data it gives me a straight line.
thanks
sharad
--
View this message in context: http://r.789695.n4.nabble.com/Plot-creates-a-straigth-line-tp3004090p3004090.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list