Examples for 'graphics::plot.formula'


Formula Notation for Scatterplots

Aliases: plot.formula lines.formula points.formula text.formula

Keywords: hplot aplot

### ** Examples

op <- par(mfrow = c(2,1))
plot(Ozone ~ Wind, data = airquality, pch = as.character(Month))
plot(Ozone ~ Wind, data = airquality, pch = as.character(Month),
     subset = Month != 7)
plot of chunk example-graphics-plot.formula-1
par(op)

## text.formula() can be very natural:
wb <- within(warpbreaks, {
    time <- seq_along(breaks); W.T <- wool:tension })
plot(breaks ~ time, data = wb, type = "b")
text(breaks ~ time, data = wb, labels = W.T, col = 1+as.integer(wool))
plot of chunk example-graphics-plot.formula-1

[Package graphics version 4.2.3 Index]