[R] adding text to a plot created with strat.plot() from package rioja

Jason Paul Joines jason at joines.org
Sat Aug 20 21:48:35 CEST 2011


     I'm pretty new to R and finding the responsible line would not have 
been obvious to me without your help.  I downloaded the source for 
package Rioja and was surprised to see that each function was supplied 
in it's own file.  That made it pretty straightforward to copy, modify, 
and use my own version of it.  Still, it's going to take quite a while 
to get familiar with all of the graphical capabilities of R.


Thanks,

Jason
===========



-------- Original Message --------
Subject: Re: [R] adding text to a plot created with strat.plot() from 
package rioja
From: Uwe Ligges <ligges at statistik.tu-dortmund.de>
To: Jason Paul Joines <jason at joines.org>
Date: 2011.08.20.Sat.8:43:30
>
>
> On 19.08.2011 18:40, Jason Paul Joines wrote:
>> I have a plot created with strat.plot() from package rioja. When the
>> plot is created with scale.percent=FALSE, each x axes is labeled at 0
>> and its maximum. However, when scale.percent=TRUE, the x axes are not
>> labeled. I need to use scale.percent=TRUE and I need labels for the x 
>> axes.
>>
>> I have been able to add labels to the x axes with mtext but it is very
>> tedious to find the correct position. Is there a better way to do this
>> or a better way to find the desired coordinates than trial and error?
>
> Yes: You can change the code and suggest your improvements to the 
> package maintainer, for example. The relevant line in that function 
> obviously is:
>
> axis(side = 1, at = seq(0, colM[i], by = 10), labels = FALSE)
>
> Uwe Ligges
>
>
>>
>>
>> Jason
>> ===========
>>
>> ______________________________________________
>> R-help at 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.
>



More information about the R-help mailing list