[R] par() function problem

Petr Pikal petr.pikal at precheza.cz
Mon Sep 30 10:06:16 CEST 2002



On 27 Sep 2002 at 8:30, zlamal at ufi.fme.vutbr.cz wrote:

> Hi,
>   I want to change line and marker type using par() function (my
> example is taken from bigger function)

What is your real intention?

> 
> oldpar<-par(no.readonly=TRUE)
> par(type="b",lty=1)
>   plot(x1,col=1)

you can use

plot(x1,type="b",lty=1,col=1)


> par(type="b",lty=2)
>   lines(x2,col=2)

lines(x2,col=2,lty=2)
points(x2,pch=1,col=2)

to get desired effect without bothering with par() setting, but it 
need not to suit your real intention.

> par(oldpar)  # restore plotting parameters
> 
> First line is drawn only with circles (no line)
> Second line is drawn only line but not circles.
> 
> Where is problem?
> 
> Jakub Zlamal

Regards
Petr Pikal
petr.pikal at precheza.cz
p.pik at volny.cz


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list