[R] plotting with gap in x-axis range

2009-05-08 Thread BARRES-DE-ALMEIDA U.
Hi, 

I need to make a plot of data from multiple epochs, and so I'd need to 
introduce a couple of breaks in the x-axis not to have too many empty space in 
my plot.

I discovered a function in the package "plotrix" which makes breaks in axis, 
but it is not what I was actually looking for, because it doesn't really 
introduce the a range gap or rescale the plot according to the suppressed 
spaces.

does anyone know of a function (or a procedure) that would do that for me?

thanks and best regards,
Ulisses.


Ulisses Barres de Almeida, M.Sc.
CAPES Ph.D. - Astrophysics
The H.E.S.S. Collaboration
University of Durham, England

"Time past and time future 
What might have been and what has been 
Point to one end, which is always present." 
T.S.Eliot - Burnt Norton, Four Quartets


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] multiple plots in same graph window

2009-04-21 Thread BARRES-DE-ALMEIDA U.
Hi,

I'm trying to make multiple plots in a same graph window in R. 

The multiple graphs are showing up in the right positions on the window, but 
I'm having the problem that the graphic window is being refreshed every time a 
new plot is drawn, so that I end up with only the last graph coming up; the 
previous ones are all erased

If I try to print in a .eps file directly, then I end up with the first plot 
only, in the right position of the page, and the others are not plotted at all. 

The script I wrote is the following:

X11()

par(fig=c(0., 0.55, 0.45, 1.), cex=0.8)
plot(ldtime, dx[which(dphotons$energy<0.3, arr.ind=T)], type="l", main="", 
xlab="seconds", ylab="cell density", xlim=c(min(hdtime), max(ldtime)))

dev.set(dev.cur())
par(fig=c(0., 0.55, 0., 0.55),cex=0.8)
plot(hdtime, dx[which(dphotons$energy>0.5, arr.ind=T)], type="l", 
xlab="seconds", ylab="cell density", xlim=c(min(hdtime), max(ldtime)))

dev.set(dev.cur())
par(fig=c(0.5, 1., 0., 1.), cex=0.8)
plot(x, cumsum(Pl)/max(cumsum(Pl)), type="l", main="", xlab="", ylab="profile 
cumulative probability", xlim=c(min(hdtime), max(ldtime)))
points(x, cumsum(Ph)/max(cumsum(Ph)), type="l", col=gray(0.5))


Can someone please point me what I'm doing wrong?

thanks,
ulisses.


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] plot confidence intervals as shaded band

2009-04-22 Thread BARRES-DE-ALMEIDA U.
Hi,

does anyone know how do I plot confidence intervals as a shaded band around a 
curve, rather than as errors bars?

many thanks,
ulisses.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.