# This example will show a warning for the factor levels taht are not present in the specific
# test dataset
dupePlotR(
data = beesFlagged,
# The outPath to save the plot as
# Should be something like: #paste0(OutPath_Figures, "/duplicatePlot_TEST.pdf"),
outPath = tempdir(),
fileName = "duplicatePlot_TEST.pdf",
# Colours in order: duplicate, kept duplicate, unique
dupeColours = c("#F2D2A2","#B9D6BC", "#349B90"),
# Plot size and height
base_height = 7, base_width = 7,
legend.position = c(0.85, 0.8),
# Extra variables can be fed into forcats::fct_recode() to change names on plot
GBIF = "GBIF", SCAN = "SCAN", iDigBio = "iDigBio", USGS = "USGS", ALA = "ALA",
ASP = "ASP", CAES = "CAES", 'B. Mont.' = "BMont", 'B. Minckley' = "BMin", Ecd = "Ecd",
Gaiarsa = "Gai", EPEL = "EPEL", Lic = "Lic", Bal = "Bal", Arm = "Arm"
)
Run the code above in your browser using DataLab