# NOT RUN {
# ways to work:
plot_icons(N = 1000) # icon array with default settings (arr_type = "array")
plot_icons(arr_type = "shuffledarray", N = 1000) # icon array with shuffled IDs
# array types:
plot_icons(arr_type = "mosaic", N = 1000) # areas as in mosaic plot
plot_icons(arr_type = "fillequal", N = 1000) # areas of equal size (probability as density)
plot_icons(arr_type = "fillleft", N = 1000) # icons filled from left to right (in columns)
plot_icons(arr_type = "filltop", N = 1000) # icons filled from top to bottom (in rows)
plot_icons(arr_type = "scatter", N = 1000) # icons randomly scattered
# by argument:
plot_icons(N = 1000, by = "all") # hi, mi, fa, cr (TP, FN, FP, TN) cases
plot_icons(N = 1000, by = "cd") # (hi + mi) vs. (fa + cr) (TP + FN vs. FP + TN) cases
plot_icons(N = 1000, by = "dc") # (hi + fa) vs. (mi + cr) (TP + FP vs. FN + TN) cases
plot_icons(N = 1000, by = "ac") # (hi + cr) vs. (fa + mi) (TP + TN vs. FP + FN) cases
# icon symbols:
plot_icons(N = 100, icon_types = c(21, 23, 24, 23),
block_size_row = 5, block_size_col = 5, #nblocks_row = 2, nblocks_col = 2,
block_d = 0.5, border_d = 0.9)
# variants:
plot_icons(N = 800, arr_type = "array", icon_types = c(21, 22, 23, 24),
block_d = 0.5, border_d = 0.5)
plot_icons(N = 1250, sens = 0.9, spec = 0.9, prev = 0.9,
icon_types = c(21, 23, 24, 23),
block_size_row = 10, block_size_col = 5,
nblocks_row = 5, nblocks_col = 5,
block_d = 0.8,
border_d = 0.2,
fill_array = "top")
plot_icons(N = 800, arr_type = "shuffledarray", icon_types = c(21, 23, 24, 22),
block_d = 0.5, border_d = 0.5)
plot_icons(N = 800, arr_type = "shuffledarray", icon_types = c(21, 23, 24, 22),
icon_brd_col = grey(.33, .99), icon_brd_lwd = 3, cex_lbl = 1.2)
plot_icons(N = 800, arr_type = "fillequal", icon_types = c(21, 22, 22, 21),
icon_brd_lwd = .5, cex = 1, cex_lbl = 1.1)
# Text and color options:
plot_icons(N = 1000, prev = .5, sens = .5, spec = .5, arr_type = "shuffledarray",
title_lbl = "", lbl_txt = txt_TF, col_pal = pal_vir, mar_notes = FALSE)
plot_icons(N = 1000, prev = .5, sens = .5, spec = .5, arr_type = "shuffledarray",
title_lbl = "Green vs. red", col_pal = pal_rgb, transparency = .5)
plot_icons(N = 1000, prev = .5, sens = .5, spec = .5, arr_type = "shuffledarray",
title_lbl = "Shades of blue", col_pal = pal_kn, transparency = .3)
# }
Run the code above in your browser using DataLab