Skip to content
Prev 314740 / 398506 Next

plot xaxp issue

Hi

Instead of two plots with par(new = TRUE) try to put boys and girls together (quite natural thing, they will be pleased 8-)

together <- rbind(boy, girl)
together$sex <- factor(rep(c("boy", "girl"), c(8,7)))

plot(together$body_length, together$body_weight, ...., col=c("firebrick3","saddlebrown")[as.numeric(together$sex)], ....)

Regards
Petr