)==0)
{
output=list(x=x_trans)
} else if (length(x) ==0) {
output=list(y=y_trans)
} else {
output=list(x=x_trans,y=y_trans)
}
return(output)
}
--- Jannis schrieb am Di, 18.5.2010:
> Von: Jannis
> Betreff: Re: [R] scaling with relative units in pl
ilto:r-help-boun...@r-
> project.org] On Behalf Of Jannis
> Sent: Tuesday, May 18, 2010 8:50 AM
> To: r-h...@stat.math.ethz.ch
> Subject: Re: [R] scaling with relative units in plots or retrieving
> axes limits in plots
>
> Thanks for the replies! If anybody encounters a similar p
)
return(output)
}
--- Jannis schrieb am Di, 18.5.2010:
> Von: Jannis
> Betreff: [R] scaling with relative units in plots or retrieving axes limits
> in plots
> An: r-h...@stat.math.ethz.ch
> Datum: Dienstag, 18. Mai, 2010 14:23 Uhr
> Dears,
>
>
> a way to define
Dears,
a way to define x and y positions in plots in relative numbers (e.g in
fractions between 0 and 1 referring to relative positions inside the plot
region) would really help me. One example I would need this to would be to add
text via text() to a plot always at a defined spot, e.g the up
Hi,
For 2., I don't know if it's possible to retrieve the axis limits, but
you can surely specify them in your call to plot (with arguments xlim
and ylim).
That's a cheap solution and others probably have better ones.
Ivan
Le 5/18/2010 16:23, Jannis a écrit :
Dears,
a way to define x and
par("usr") #gives the extreme plotting coordinates
?par
HTH,
Josh
On Tue, May 18, 2010 at 7:32 AM, Jannis wrote:
> Dears,
>
>
> a way to define x and y positions in plots in relative numbers (e.g in
> fractions between 0 and 1 referring to relative positions inside the plot
> region) would
Dears,
a way to define x and y positions in plots in relative numbers (e.g in
fractions between 0 and 1 referring to relative positions inside the plot
region) would really help me. One example I would need this to would be to add
text via text() to a plot always at a defined spot, e.g the up
Dears,
a way to define x and y positions in plots in relative numbers (e.g in
fractions between 0 and 1 referring to relative positions inside the plot
region) would really help me. One example I would need this to would be to add
text via text() to a plot always at a defined spot, e.g the up
8 matches
Mail list logo