cranvas (version 0.8.5)

visible: Set or query the visibility of observations

Description

There is a column .visible to control the visibility of observations. This can be useful for ``deleting'' certain observations from the plot (set their visibility to FALSE).

Usage

visible(data)
visible(data) <- value

Arguments

data
the mutaframe
value
a logical vector of the length nrow(data)

Value

The function visible returns the logical vector to control the visibility of observations

See Also

qdata

Examples

Run this code
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 DataCamp Workspace