[R] Re:Plotting to A4 and replacing x-axis with actual years.
Marshall Mdoka
mmdoka at egs.uct.ac.za
Fri Apr 1 12:40:43 CEST 2005
1)I have figures in a 3 rows and 3 columns. I tried to plot with:
postscript("trend_jfm.eps", horizontal=FALSE, onefile=TRUE)
I am getting the output cut. I am in linux (slackware) version 9 I think.
I have tried to add in some of the extra conditions like for A4 as in the
manual but still haveing bits of my sliced. Hope its more detailed now.
2)For putting of the years I have used the following command:
plot(cmap[1,1,1:23]+cmap[1,2,1:23]+cmap[2,1,1:23]+cmap[2,2,1:23],pch="+",ylim=c(0,0.6),ylab="Freque
ncy",main=c("Quadrant 1 pvalue
=",pvalue,"slope=",slope),xlab="Year")
axis(side=1,at=seq(2,22,by=5),labels=seq(1980,2000,by=5))
I then repeat for all the 9 figures. However, the 1 5 10 etc is not being
over overwritten by default as mentioned in the manual.I had an option of
adding in axes=FALSE but I dont like the output which removes the covering
border.
Hope its clear now.
On Thu, 31 Mar 2005, Mulholland, Tom wrote:
> Date: Thu, 31 Mar 2005 09:01:57 +0800
> From: "Mulholland, Tom" <Tom.Mulholland at dpi.wa.gov.au>
> To: Marshall Mdoka <mmdoka at egs.uct.ac.za>
> Cc: "R-Help (E-mail)" <r-help at stat.math.ethz.ch>
> Subject: RE: [R] Re:Plotting to A4 and replacing x-axis with actual years.
>
> I think you need to read the posting guide (see the bottom of each post made) and once you have done this take some time to compose your message.
>
> The issue is that I have too little information about what you have done. It looks to me as if you are using postscript, but I am not sure if you have plotted your 3 x 3 array to the device and used the command parameter or if your reference to "written commands" is actually the 'postscript' command.
>
> Specifically the posting guide notes that a small reproducible example of the issue that you are facing will make it much easier for people to help you. It also talks about the need to identify the hardware that you are using as for certain processes the answer is quite different in Windows than it is in some flavour of Unix.
>
> The same is true of your second inquiry. Dummy code would make it easier to see what you are doing.
>
> Tom
>
>
>
> > -----Original Message-----
> > From: Marshall Mdoka [mailto:mmdoka at egs.uct.ac.za]
> > Sent: Wednesday, 30 March 2005 10:47 PM
> > To: r-help at stat.math.ethz.ch
> > Subject: [R] Re:Plotting to A4 and replacing x-axis with actual years.
> >
> >
> > Hie,
> >
> > I have written before and probably missed the reply.
> >
> > 1.) I have my figures in a 3X3 array and want to fit them
> > onto a A4 size
> > page. I have written commands to try a represent them in eps
> > format but
> > still their cutting out information.
> >
> > 2.) I have an odd number of years and wanted to represent
> > them say 1980 1985
> > 1990 1995 2000 instead of 1 5 10 etc. However, the years are not
> > overwritting in the year I want since the first year in my
> > x-axis is 1979
> > which is year 1 and year 5 being 1984.
> >
> > Could you please help especially on the first problem.
> >
> > Thanking you in advance,
> >
> > Marshall Mdoka
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
> > http://www.R-project.org/posting-guide.html
> >
>
**********MLM*********************************
Marshall L. Mdoka
Climate Systems Analysis Group,
University of Cape Town,
Private Bag, Rondebosch, 7701
Cape Town, South Africa
Tel: +27 (0)21 650 5774
Fax: +27 (0)21 650 5773
Cel: +27 (0)83 528 8553
e-mail: mmdoka at egs.uct.ac.za/mdoka1 at yahoo.com
More information about the R-help
mailing list