
stateSpec(name = NULL, group = "common", labels = NULL, layout = NULL, sort = NULL, filter = NULL)
nrow
, ncol
, and arrange
. nrow
and ncol
specify the arrangement of the panels into rows and columns (nrow = 1
and ncol = 1
are defaults), and arrange
can be either "row" or "col" and specified whether to sort the panels by row or by column ("row" is default)-Inf
and Inf
respectively.makeDisplay
or specify the state of the display when you call view
.
state <- stateSpec(
name = "my_display",
sort = list(state = "desc", county = "asc"),
filter = list(
county = list(regex = "Ben"),
state = list(select = c("OR", "WA")),
meanList = list(from = 50, to = 150)
),
layout = list(nrow = 2, ncol = 4),
labels = c("county", "state")
)
state <- validateState(state, checkDisplay = FALSE)
makeStateHash(state)
Run the code above in your browser using DataLab