[R] plot graph with error bars trouble

Marcelo Laia marcelolaia at gmail.com
Tue Oct 2 05:41:39 CEST 2007


Dear Ben Bolker, Hadley Wickham, Jim Lemon and all

I'm very thank to you!

I tried all suggestion and I wiil comments it next.

Ben Bolker suggestion is very nice and I did a little changes in
col=c(1,1),pch=c(1,16) and I include a xlab,  ylab and a legend(5, 4,
c("02H02","306"), pch = c(1,16), col = c(1,1)). But, I didn't could
change the x-axis number division. Please, see:

I got sometings like this:

 |
 |
 |
 |
 |
+-----------------------------------------------------------
 0     5     10     15     20     25     30     35

and my times are 0, 8, 12, 16, 20, 24, 28, 32

I uploaded a .ps fle to http://www.divshare.com/download/2182957-d4e
showing the graph.

I searched for a function to change this division but I didn't found.
I looked at par() and default.plot() help pages for somethings that
change the 5 spacing to 4, than I will get 0, 4, 8, 12, ...

Hadley Wickham suggestion isn't possible to test because I got a error:

> means <- cast(df, Mutant + Time ~ ., c(mean, se))
Error in eval(expr, envir, enclos) : invalid 'envir' argument

I was searched for this error and got this to topics:
http://article.gmane.org/gmane.comp.lang.r.general/56890/match=error+eval+expr+envir+enclos+invalid+argument
http://article.gmane.org/gmane.comp.lang.r.general/87741/match=error+eval+expr+envir+enclos+invalid+argument

Than, I suppose that there are a problem, or with my dataset or with a
name of function. I didn't discovery it!

Here is my sessionInfo:

R version 2.5.1 (2007-06-27)
i386-pc-mingw32

locale:
LC_COLLATE=Portuguese_Brazil.1252;LC_CTYPE=Portuguese_Brazil.1252;LC_MONETARY=Portuguese_Brazil.1252;LC_NUMERIC=C;LC_TIME=Portuguese_Brazil.1252

attached base packages:
[1] "splines"   "grid"      "stats"     "graphics"  "grDevices"
"utils"     "datasets"  "methods"
[9] "base"

other attached packages:
     ggplot2   colorspace RColorBrewer         MASS        proto
reshape      plotrix
     "0.5.5"       "0.95"      "1.0-1"     "7.2-34"      "0.3-8"
"0.8.0"      "2.2-3"


Jim Lemon suggestion is very nice, but it plot the same point for one
Mutant before the some point of other Mutant in the same Time.

I uploaded a .ps file to divshare for clarify what I want to explain.
http://www.divshare.com/download/2182890-49c

and I uploaded a true dataset:
http://www.divshare.com/download/2182913-5a3

This is the result! Could you help me a little bit more?

I am very thank to you!!!

Best wishes

-- 
Marcelo Luiz de Laia



More information about the R-help mailing list