inst/extdata/examples/R/plot-partly-dashed-line.R

if (file.exists('partly-dashed-line.xlsx')) { # plot figures from Excel file:
  nicerplot::nplot('partly-dashed-line.xlsx')
} else if (file.exists('partly-dashed-line.RData')) { # or plot figures directly in R:
  d <- dget('partly-dashed-line.RData')
  nicerplot::nplot(d, title = c('Partly dashed line'), x_title = c('maand'), y_title = c('index'), line_lty = c(1, 3, 1), hline_bold = c(100), legend_order = c(1, 3), palette = c('endeavour, endeavour, rose'), style = c('default'), lock = c('no'), 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.