# NOT RUN {
# (1) Basics (as ROW or COL):
plot_n() # default plot (random n, row = TRUE, with borders, no labels)
plot_n(row = FALSE) # default plot (random n, with borders, no labels)
plot_n(n = 6, sort = FALSE) # random order
plot_n(n = 8, borders = FALSE) # no borders
plot_n(n = 10, lbl_tiles = TRUE) # with tile labels
plot_n(n = 10, lbl_title = TRUE) # with title label
# Set colors:
plot_n(n = 3, pal = c("forestgreen", "white", "black"),
lbl_tiles = TRUE, sort = TRUE)
plot_n(n = 5, row = FALSE,
pal = c("orange", "white", "firebrick"),
lbl_tiles = TRUE, lbl_title = TRUE, sort = TRUE)
plot_n(n = 10, sort = FALSE, border_col = "white", border_size = 2)
# Fixed rseed:
plot_n(n = 4, sort = FALSE, borders = FALSE,
lbl_tiles = TRUE, lbl_title = TRUE, rseed = 101)
# (2) polar plot (as PIE or TARGET):
plot_n(polar = TRUE) # PIE plot (with borders, no labels)
plot_n(polar = TRUE, row = FALSE) # TARGET plot (with borders, no labels)
plot_n(n = 4, polar = TRUE, sort = FALSE) # PIE in random order
plot_n(n = 5, polar = TRUE, row = FALSE, borders = FALSE) # TARGET no borders
plot_n(n = 7, polar = TRUE, lbl_tiles = TRUE) # PIE with tile labels
plot_n(n = 7, polar = TRUE, row = FALSE, lbl_title = TRUE) # TARGET with title label
plot_n(n = 4, row = TRUE, sort = FALSE, borders = TRUE,
border_col = "white", border_size = 2,
polar = TRUE, rseed = 132)
plot_n(n = 4, row = FALSE, sort = FALSE, borders = TRUE,
border_col = "white", border_size = 2,
polar = TRUE, rseed = 134)
# }
Run the code above in your browser using DataLab