.visible
to control the visibility of observations.
This can be useful for ``deleting'' certain observations from the plot (set
their visibility to FALSE
).
visible(data)
visible(data) <- value
nrow(data)
visible
returns the logical vector to
control the visibility of observations
qdata
df <- qdata(iris)
visible(df)
visible(df) <- rep(c(TRUE, FALSE), c(100, 50)) # hide the last 50 obs
visible(df)
Run the code above in your browser using DataLab