if (file.exists('line-symbol.xlsx')) { # plot figures from Excel file:
nicerplot::nplot('line-symbol.xlsx')
} else if (file.exists('line-symbol.RData')) { # or plot figures directly in R:
d <- dget('line-symbol.RData')
nicerplot::nplot(d, type = c('line'), title = c('Ontwikkeling EMU-schuld in schokscenario's'), y_title = c('%-bbp'), x_lim = c(2017.5, 2025.5), line_symbol = c(0, 20, 20, 20), 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.