inst/extdata/examples/R/plot-kansrijk.R

if (file.exists('kansrijk.xlsx')) { # plot figures from Excel file:
  nicerplot::nplot('kansrijk.xlsx')
} else if (file.exists('kansrijk.RData')) { # or plot figures directly in R:
  d <- dget('kansrijk.RData')
  nicerplot::nplot(d, style = c('kansrijk'), type = c('bar--'), y_title = c('%'), scale = c(100), turn = c('y'), bar_lab_show = c('y'), open = FALSE)
} else print(paste('Please download', xlsx_data_file, 'or', rdata_file, 'to create the nice R plot.'))
data-science-made-easy/nicerplot documentation built on Nov. 3, 2024, 9:23 p.m.