[R-SIG-Mac] Axis labels drawn double in plot
Sean Davis
sdavis2 at mail.nih.gov
Thu May 11 13:24:16 CEST 2006
On 5/11/06 6:49 AM, "Timothy Bates" <tim.bates at ed.ac.uk> wrote:
> As you can see in the attached plot pdf, the y axis labels are double typed
> with a small offset, making them somewhat useless.
>
> I can see now that this is my fault, as I was passing the x and ylab
> parameters each time, but I can¹t see why these don¹t overlay perfectly?
The xlim and ylims are chosen independently for each plot. You probably
want to look at using lines() or points() to produce the second and third
plots on top of the first.
This isn't really a mac-specific question, so in the future you can ask on
r-help for general R questions.
Sean
> The commands to generate the plot were
>
> plot(function(x)dnorm(x,100,15)*100, 50, 150, main = "IQ distribution", xlab
> = "IQ", ylab = "proportion")
> par(new=TRUE)
> plot(function(x)dnorm(x,100-15,15)*100, 50, 150, main = "IQ distribution",
> xlab = "IQ", ylab = "proportion")
> par(new=TRUE)
> plot(function(x)dnorm(x,100+15,15)*100, 50, 150, main = "IQ distribution",
> xlab = "IQ", ylab = "proportion")
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list