# NOT RUN {
# (1) Tile plot:
plot_tiles() # default plot (random n, with borders, no labels)
plot_tiles(n = 6, sort = FALSE) # random order
plot_tiles(n = 8, borders = FALSE) # no borders
plot_tiles(n = 10, lbl_tiles = TRUE) # with tile labels
plot_tiles(n = 10, lbl_title = TRUE) # with title label
# Set colors:
plot_tiles(n = 3, pal = c("steelblue", "white", "black"),
lbl_tiles = TRUE, sort = TRUE)
plot_tiles(n = 5, pal = c("orange", "white", "firebrick"),
lbl_tiles = TRUE, lbl_title = TRUE,
sort = TRUE)
plot_tiles(n = 10, sort = FALSE, border_col = "white", border_size = 2)
# Fixed rseed:
plot_tiles(n = 4, sort = FALSE, borders = FALSE,
lbl_tiles = TRUE, lbl_title = TRUE,
rseed = 101)
# (2) polar plot:
plot_tiles(polar = TRUE) # default polar plot (with borders, no labels)
plot_tiles(n = 6, polar = TRUE, sort = FALSE) # random order
plot_tiles(n = 8, polar = TRUE, borders = FALSE) # no borders
plot_tiles(n = 10, polar = TRUE, lbl_tiles = TRUE) # with tile labels
plot_tiles(n = 10, polar = TRUE, lbl_title = TRUE) # with title label
plot_tiles(n = 4, sort = FALSE, borders = TRUE,
border_col = "white", border_size = 2,
polar = TRUE, rseed = 132)
# }
Run the code above in your browser using DataCamp Workspace