inst/extdata/examples/R/plot-secondary-y-axis.R

if (file.exists('secondary-y-axis.xlsx')) { # plot figures from Excel file:
  nicerplot::nplot('secondary-y-axis.xlsx')
} else if (file.exists('secondary-y-axis.RData')) { # or plot figures directly in R:
  d <- dget('secondary-y-axis.RData')
  nicerplot::nplot(d, type = c('bar--, line'), title = c('Economische groei in Nederland'), y_title = c('mutatie in %'), x_lab_date_show = c('y'), x_ticks_date = c('years, quarters'), y_axis = c('l, r'), y_r_title = c('€ miljard'), x_date_format = c(''yy'), style = c('default'), 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.