Displaying 4 results from an estimated 4 matches for "etiennesky".
2006 Jun 27
2
distribution of daily rainfall values in binned categories
Hi,
I'm a newbie in using R and I would like to have a few
clues as to how I could compute and plot a
distribution of daily rainfall intensity in different
categories. I have daily values (mm/day) for several
years and I need to show the frequency of 0-1, 1-2.5,
2.5-5, 5-10, 10-20, 20+ mm/day. Can this be done
easily?
Thanks,
Etienne
2006 Jul 26
1
generating sequences with gaps
I need sequences that have gaps in them, such as the
following:
4 5 6 | 12 13 14 | 20 21 22
a simple question, I've been scratching my head for a
R function that will do this
The : and seq do not allow this, and the c() can be
used although not in an automatic way. I'm sure there
is a way to do it without using a for() construct.
Thank you
2006 Dec 07
2
barplot - how to force vertical axis to cover entire plot area
I'm using barplot with the following call:
barplot(stat_data[[5]][,],axes=TRUE,axisnames=TRUE,axis.lty=1,xlab=xlab,ylab=ylab,beside=TRUE,las=1,font.lab=2,font.axis=1,legend.text=TRUE)
On some data, the vertical axis does not cover the
whole plot area and the last tick mark is smaller than
the maximum value.
I tried setting the ylim values but even with that,
some plots are still not OK,
2007 Jun 25
2
changing the position of the y label (ylab)
How can I change the position of the ylab, after
enlarging the margins with par(mar=...)?
Here is the relevant code snippet
----
par(mar=c(5.1,5.1,4.1,2.1))
plot(c(1979,2003),c(40,50),ylim=c(1,73),lab=c(20,10,1),pch=21,col='blue',bg='blue',axes=FALSE,xlab="Years",ylab="Onset/Withdrawl
Date",font.lab=2)
box()
axis(1,las=2)