Nothing
market_share
data errors gracefully`data` must have all the expected names.
x Missing names: metric, technology, technology_share.
i Is your data `market_share`-like?
Caused by error in `abort_if_missing_names()`:
! `data` must have all the expected names.
x Missing names: metric, technology, technology_share.
`zero_row` must have some rows.
x `zero_row` has zero rows.
`prep$metric` must have a single scenario not 3.
i Do you need to pick one scenario? E.g. pick 'target_cps' with: `subset(prep, metric %in% c('projected', 'corporate_economy', 'target_cps'))`.
x Provided: target_cps, target_sds, target_sps.
`bad_sector` must have a single value of `sector`.
i Do you need to pick one value? E.g. pick 'a' with: `subset(bad_sector, sector == 'a')`.
x Provided: a, b.
`bad_region` must have a single value of `region`.
i Do you need to pick one value? E.g. pick 'a' with: `subset(bad_region, region == 'a')`.
x Provided: a, b.
`bad_scenario_source` must have a single value of `scenario_source`.
i Do you need to pick one value? E.g. pick 'a' with: `subset(bad_scenario_source, scenario_source == 'a')`.
x Provided: a, b.
`too_few$metric` must have one scenario.
x It has none.
Code
invisible(plot_techmix(mydata))
Message <rlang_message>
The `technology_share` values are plotted for extreme years.
Do you want to plot different years? E.g. filter mydata with:`subset(mydata, year %in% c(2020, 2030))`.
The `data` argument of `plot_techmix()` must be prepped already as of r2dii.plot 0.4.0.
i From the next release you will need to call `r2dii.plot::plot_techmix(data)` prior to calling `r2dii.plot::plot_techmix()`.
i Alternatively custom data preparation will also become possible.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.