Skip to content
Prev 45055 / 398528 Next

stripchart and axes

On Sun, 2004-02-29 at 12:32, Henric Nilsson wrote:
stripchart() will not honor that argument, which is why you are getting
the error.

Try calling the following before calling stripchart():

 par(yaxt = "n", xaxt = "n", bty = "n")

This will result in the axes being suppressed and no surrounding box.

Example:

# Save parameters to restore them after the plot
old.par <- par(no.readonly = TRUE)

x <- rnorm(50)
par(yaxt = "n", xaxt = "n", bty = "n")
stripchart(x)

# Restore the pars back to initial settings
par(old.par)

See ?par for more information on the above graphic parameters.

HTH,

Marc Schwartz