Package: eneRgyVD 1.0.0

Michael Weber

eneRgyVD: Municipal statistics for climate-related policies, Canton de Vaud (Switzerland)

PKG_DESC.

Authors:Michael Weber [cre, aut]

eneRgyVD_1.0.0.tar.gz
eneRgyVD_1.0.0.zip(r-4.5)eneRgyVD_1.0.0.zip(r-4.4)eneRgyVD_1.0.0.zip(r-4.3)
eneRgyVD_1.0.0.tgz(r-4.5-any)eneRgyVD_1.0.0.tgz(r-4.4-any)eneRgyVD_1.0.0.tgz(r-4.3-any)
eneRgyVD_1.0.0.tar.gz(r-4.5-noble)eneRgyVD_1.0.0.tar.gz(r-4.4-noble)
eneRgyVD_1.0.0.tgz(r-4.4-emscripten)eneRgyVD_1.0.0.tgz(r-4.3-emscripten)
eneRgyVD.pdf |eneRgyVD.html
eneRgyVD/json (API)
NEWS

# Install 'eneRgyVD' in R:
install.packages('eneRgyVD', repos = c('https://swissstatsr.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mick-weber/energyvd/issues

Datasets:

On CRAN:

Conda:

4.02 score 1 stars 2 scripts 37 exports 120 dependencies

Last updated 3 days agofrom:71a058e06a. Checks:1 OK, 8 WARNING. Indexed: no.

TargetResultLatest binary
Doc / VignettesOKMar 06 2025
R-4.5-winWARNINGMar 06 2025
R-4.5-macWARNINGMar 06 2025
R-4.5-linuxWARNINGMar 06 2025
R-4.4-winWARNINGMar 06 2025
R-4.4-macWARNINGMar 06 2025
R-4.4-linuxWARNINGMar 06 2025
R-4.3-winWARNINGMar 06 2025
R-4.3-macWARNINGMar 06 2025

Exports:add_colname_unitconvert_unitscreate_alluvial_chartcreate_geoportail_tagcreate_plot_ggiraphelec_conselec_cons_docelec_prodelec_prod_docformat_numbers_heuristicgenerate_doc_accordion_panelsglossarylump_alluvial_factorsmake_doc_table_dtmake_slider_input_yearsmake_table_dtng_consng_cons_docpart_voit_elecregener_cons_ae_affregener_cons_ae_useregener_docregener_miscregener_needsrename_columns_outputreturn_palette_elec_consreturn_palette_elec_prodreturn_palette_regenerrun_appsf_cantonsf_communessf_districtssf_lacssubsidies_by_buildingsubsidies_by_measuresubsidies_doctaux_motorisation

Dependencies:anytimeattemptbase64encBHbitbit64bslibcachemclassclassIntclicliprcolorspacecommonmarkconfigcpp11crayoncrosstalkdata.tableDBIdigestdplyrDTe1071evaluatefansifarverfastmapfontawesomeforcatsfsgenericsggalluvialggiraphggplot2gluegolemgtableherehighrhmshtmltoolshtmlwidgetshttpuvisobandjquerylibjsonliteKernSmoothknitrlabelinglaterlatticelazyevalleafletleaflet.extrasleaflet.providerslifecyclemagrittrMASSMatrixmemoisemgcvmimemunsellnanotimenlmeopenxlsxphosphoriconspillarpkgconfigpngprettyunitsprogresspromisesproxypurrrR6rappdirsrasterRColorBrewerRcppRcppCCTZRcppDatereadrrjsonrlangrmarkdownrprojroots2sassscalessfshinyshinycssloadersshinylogsshinyWidgetssourcetoolsspstringistringrsystemfontsterratibbletidyrtidyselecttinytextzdbunitsutf8uuidvctrsviridisLitevroomwithrwkxfunxtableyamlzipzoo

eneRgyVD

Rendered fromeneRgyVD.Rmdusingknitr::rmarkdownon Mar 06 2025.

Last update: 2022-10-25
Started: 2022-10-25

Readme and manuals

Help Manual

Help pageTopics
add_colname_unit Add units to target colnames usually right before display uses (datatable, download, etc.)add_colname_unit
Buildings exposed to natural hazardsbatiment_danger
convert_units() Converts the values of a vector (colname) or a direct value (data) given its starting and end unit. conversion tables are defined in utils_helpers.Rconvert_units
create_alluvial_chart() creates a ggplot2 alluvial plot using ggalluvial library and uses labels and variable names as arguments for a flexible data inputcreate_alluvial_chart
create_geoportail_tag Creates a icon+link combination (tag) which redirects towards a specified geoportail link where geodata can be viewed for Canton de Vaudcreate_geoportail_tag
create_plot_ggiraph()create_plot_ggiraph
Electricity consumption by commune for canton de Vaudelec_cons elec_cons_doc
Electricity production by commune for canton de Vaudelec_prod elec_prod_doc
format_numbers_heuristic a custom function to display large numbers (below 1000) without any decimal, and small numbers with one decimal all values are displayed with thousand separator, no scientific notation and trailing zeroes are droppedformat_numbers_heuristic
generate_doc_accordion_panels() Create HTML `bslib::accordion_panel()` items for each dataset documented in ./data-doc. These are then used and spliced as arguments inside a `bslib::accordion()` item. Each markdown h2 heading is used as a `title` argument for `accordion_panel()` and each paragraph (i.e. not a h2 header) is used as content to fill the `accordion_panel()`.generate_doc_accordion_panels
Glossaryglossary
lump_alluvial_factors() takes a dataframe structured for ggalluvial and lumps the factor variables (var_from, var_to) according to two forcats functions which arguments should be modified in the codelump_alluvial_factors
make_doc_table_dt Creates minimalistic documentation table with download featuresmake_doc_table_dt
make_slider_input_years creates a shiny sliderInput() widget based on a vector of two yearsmake_slider_input_years
make_table_dt a function that prepares data (add colnames, relocate, etc.) and makes a DT table which also formats numbers nicelymake_table_dt
Natural gas distribution by commune for canton de Vaudng_cons ng_cons_doc
Share of electric vehicles by commune for canton de Vaudpart_voit_elec
Quality index for public transport services by commune for canton de Vaudqualite_desserte
RegEner datasetsregener_cons_ae_aff regener_cons_ae_use regener_datasets regener_doc regener_misc regener_needs
rename_columns_output() Uses the csv file in app/extdata/ to convert initial colnames to nicely formatted ones the function matches only the start of the initial colname to find a match, allowing the unit to be added before this function via 'add_colname_unit()'rename_columns_output
return_palette_elec_cons Returns the color palette for sectors in the electricity consumption datasetreturn_palette_elec_cons
return_palette_elec_prod Returns the color palette for categories in the electricity production datasetreturn_palette_elec_prod
return_palette_regener returns the color palette for energy sources in the regener datasetreturn_palette_regener
Run the Shiny Applicationrun_app
Limits for canton de Vaud - Cantonsf_canton
Limits for canton de Vaud - Communessf_communes
Limits for canton de Vaud - Districtssf_districts
Limits for canton de Vaud - Lakessf_lacs
Building subsidies by commune for canton de Vaudsubsidies_by_building
Measure subsidies by commune for canton de Vaudsubsidies_by_measure subsidies_doc
Urban canopy surface by commune for canton de Vaudsurface_canopee
Motorisation rate by commune for canton de Vaudtaux_motorisation
welcome_modal() shiny modal message to inform the user about the app, and offer the possibility to have a guided tour (introjs)welcome_modal