[R] Problem with par("usr")

Christophe Declercq cdeclercq at nordnet.fr
Thu Jun 3 12:58:47 CEST 2004


Bonjour, Nicolas

par('usr') is read-only (see '?par')

That makes sense: user coordinates come from what you have plotted.

Would you show us an example of what exactly you want to do?

Christophe
--
Christophe Declercq, MD
Observatoire régional de la santé Nord-Pas-de-Calais
13, rue Faidherbe
F-59046 LILLE Cédex
Phone 33 3 20 15 49 24
Fax 33 3 20 55 92 30
E-mail c.declercq at orsnpdc.org



> -----Message d'origine-----
> De : r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch]De la part de Nicolas STRANSKY
> Envoyé : jeudi 3 juin 2004 11:36
> À : r-help at stat.math.ethz.ch
> Objet : [R] Problem with par("usr")
>
>
> Hi,
>
> I'm trying to use the "usr" argument but I see no effect of this option
> on my plots. For example:
>
>  > par(usr=c(0,4,0,4))
>  > plot(1,1)
>
> This plots one point fine, but the coordinates of the plotting region
> are not those that I specified using par()...
> I can check this with
>  > par("usr")
> [1] 0.568 1.432 0.568 1.432
>
> What can I change in order to have this "usr" argument working ?
>
> The aim of all this is to be able to superpose two plots where xlim and
> ylim arguments are not sufficient for having the same scalings...
>
> Thanks for your help.
> --
> Nicolas STRANSKY
> Équipe Oncologie Moléculaire
> Institut Curie - UMR 144 - CNRS                 Tel : +33 1 42 34 63 40
> 26, rue d'Ulm - 75248 Paris Cedex 5 - FRANCE    Fax : +33 1 42 34 63 49
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>




More information about the R-help mailing list