[R] catering for rescaling
David Winsemius
dwinsemius at comcast.net
Mon Mar 10 13:16:01 CET 2014
If you use axis instead of text the positions should get set in user coordinates.
--
David
> On Mar 10, 2014, at 6:34 PM, Geoffrey <lordgeoffrey at optusnet.com.au> wrote:
>
> My barplot has nicely left justified horizontal labels, the names of people. Written using text() . I use par("user")[1] - OFFSET to get the placed nicely.
>
> Now of course if i manually rescale/zoom the plot the labels get redrawn at the 'wrong' location, including off the left of the plot.
>
> I assume this is because the x-position is based off the size of a unit in the plot, which changes when i rescale.
>
> Can i get some pointers on how to adjust for this?
>
> Thanks.
>
> ______________________________________________
> 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