plot_voi_doi | R Documentation |
The function uses the outputs of export_voi
and export_doi
to prepare a
parallel time series plot of volume and degree of internationalization
values. When the output includes more than one keyword, only the first
keyword is used.
plot_voi_doi( data_voi, data_doi, type = c("obs", "sad", "trd"), measure = c("gini", "hhi", "entropy"), locations = "countries", smooth = TRUE )
data_voi |
Data exported from |
data_doi |
Data exported from |
type |
Object of type |
measure |
Object of type |
locations |
Object of type |
smooth |
Object of type |
Line plot of VOI and DOI time series as ggplot2
object.
export_voi()
export_doi()
ggplot2::ggplot()
## Not run: data1 <- export_voi(keyword = "manchester united") data2 <- export_doi( keyword = "manchester united", locations = "countries" ) plot_voi_doi( data_voi = data1, data_doi = data2, type = "obs", measure = "gini", smooth = TRUE ) plot_voi_doi( data_voi = data1, data_doi = data2, type = "sad", measure = "hhi", smooth = FALSE ) plot_voi_doi( data_voi = data1, data_doi = data2, type = "trd", measure = "entropy", smooth = TRUE ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.