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.'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.