# NOT RUN {
newSlide(
main_deck,
~ cyl + wt,
title = "Cyl and Weight",
subtitle = "2017 Data"
)
# Grouped bar plot
newSlide(
main_deck,
~ approval + age4,
title = "Approval by age group",
display_settings = list(
vizType = "groupedBarPlot",
showValueLabels = TRUE
),
subtitle = "2017 Data"
)
# Horizontal stacked bars
newSlide(
main_deck,
~ approval + age4,
title = "Approval by age group",
display_settings = list(
vizType = "horizontalStackedBarPlot"
),
subtitle = "2017 Data"
)
# A donut is only suitable for a single variable
newSlide(
main_deck,
~ approval,
title = "Approval of new feature",
display_settings = list(
vizType = "donut",
showValueLabels = FALSE
),
subtitle = "2017 Data"
)
# }
Run the code above in your browser using DataLab