if (FALSE) {
# Hiding an element
transforms(slide) <- list(rows_dimension = makeDimTransform(hide = "Neutral"))
# Using an existing saved palette
transforms(slide) <- list(rows_dimension = makeDimTransform(
colors = defaultPalette(ds)
))
# Setting specific colors
transform(slide) <- list(rows_dimension = makeDimTransform(
colors = c("#af8dc3", "#f7f7f7", "#7fbf7b")
))
# Reordering & renaming elements
transforms(slide) <- list(
rows_dimension = makeDimTransform(
rename = c("V. Good" = "Very Good", "V. Bad" = "Very Bad"),
order = 5:1
),
columns_dimension = makeDimTransform(order = c("Brand X", "Brand A", "Brand B"))
)
}
Run the code above in your browser using DataLab