plot_voi_doi {globaltrends} | R Documentation |
Line plots of VOI and DOI time series
Description
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.
Usage
plot_voi_doi(
data_voi,
data_doi,
type = c("obs", "sad", "trd"),
measure = c("gini", "hhi", "entropy"),
locations = "countries",
smooth = TRUE
)
Arguments
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 |
Value
Line plot of VOI and DOI time series as ggplot2
object.
See Also
Examples
## 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)