Package: vegawidget 0.5.0.9000

Ian Lyttle

vegawidget: 'Htmlwidget' for 'Vega' and 'Vega-Lite'

'Vega' and 'Vega-Lite' parse text in 'JSON' notation to render chart-specifications into 'HTML'. This package is used to facilitate the rendering. It also provides a means to interact with signals, events, and datasets in a 'Vega' chart using 'JavaScript' or 'Shiny'.

Authors:Ian Lyttle [aut, cre], Vega/Vega-Lite Developers [aut], Alicia Schep [ctb], Stuart Lee [ctb], Kanit Wongsuphasawat [ctb], Dominik Moritz [ctb], Arvind Satyanarayan [ctb], Jeffrey Heer [ctb], Mike Bostock [ctb]

vegawidget_0.5.0.9000.tar.gz
vegawidget_0.5.0.9000.zip(r-4.5)vegawidget_0.5.0.9000.zip(r-4.4)vegawidget_0.5.0.9000.zip(r-4.3)
vegawidget_0.5.0.9000.tgz(r-4.4-any)vegawidget_0.5.0.9000.tgz(r-4.3-any)
vegawidget_0.5.0.9000.tar.gz(r-4.5-noble)vegawidget_0.5.0.9000.tar.gz(r-4.4-noble)
vegawidget_0.5.0.9000.tgz(r-4.4-emscripten)vegawidget_0.5.0.9000.tgz(r-4.3-emscripten)
vegawidget.pdf |vegawidget.html
vegawidget/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/vegawidget/vegawidget/issues

Datasets:

On CRAN:

8.22 score 68 stars 4 packages 49 scripts 1.0k downloads 1 mentions 49 exports 29 dependencies

Last updated 10 months agofrom:e28774fcc8. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 12 2024
R-4.5-winOKNov 12 2024
R-4.5-linuxOKNov 12 2024
R-4.4-winOKNov 12 2024
R-4.4-macOKNov 12 2024
R-4.3-winOKNov 12 2024
R-4.3-macOKNov 12 2024

Exports:.vw_handler_body.vw_handler_def%>%as_vegaspecglue_jsJSknit_print.vegaspecrenderVegawidgets3_registeruse_vegawidgetuse_vegawidget_interactivevega_embedvega_schemavega_versionvega_version_allvega_version_availablevegawidgetvegawidgetOutputvw_add_data_listenervw_add_event_listenervw_add_signal_listenervw_as_jsonvw_autosizevw_examinevw_fetchvw_handlervw_handler_add_effectvw_handler_body_composevw_handler_composevw_handler_datavw_handler_eventvw_handler_signalvw_loadvw_rename_datasetsvw_serialize_datavw_set_base_urlvw_shiny_demovw_shiny_get_datavw_shiny_get_eventvw_shiny_get_signalvw_shiny_runvw_shiny_set_datavw_shiny_set_signalvw_spec_versionvw_to_bitmapvw_to_svgvw_to_vegavw_write_pngvw_write_svg

Dependencies:assertthatbase64encbslibcachemclidigestevaluatefastmapfontawesomefsgluehighrhtmltoolshtmlwidgetsjquerylibjsonliteknitrlifecyclemagrittrmemoisemimeR6rappdirsrlangrmarkdownsasstinytexxfunyaml

Getting Started

Rendered fromvegawidget.Rmdusingknitr::rmarkdownon Nov 12 2024.

Last update: 2022-01-29
Started: 2018-08-04

Readme and manuals

Help Manual

Help pageTopics
Add JavaScript listenersadd-listeners vw_add_data_listener vw_add_event_listener vw_add_signal_listener
Coerce to vegaspecas_vegaspec as_vegaspec.character as_vegaspec.default as_vegaspec.json as_vegaspec.list as_vegaspec.vegaspec as_vegaspec.vegawidget
Example dataset: Categorical datadata_category
Example dataset: Seattle daily weatherdata_seattle_daily
Example dataset: Seattle hourly temperaturesdata_seattle_hourly
Interpolate into a JavaScript stringglue_js
Create or write imageimage vw_to_bitmap vw_to_svg vw_write_png vw_write_svg
Knit-print methodknit_print.vegaspec
Render shiny-output for vegawidgetrenderVegawidget
Get information from a Vega chart into Shinyshiny-getters vw_shiny_get_data vw_shiny_get_event vw_shiny_get_signal
Set information in a Vega chart from Shinyshiny-setters vw_shiny_run vw_shiny_set_data vw_shiny_set_signal
Example vegaspec: mtcars scatterplotspec_mtcars
Add vegawidget functions to your packageuse_vegawidget use_vegawidget_interactive
Vega embed optionsvega_embed
Create string for schema-URLvega_schema
Get Vega JavaScript versionsvega_version vega_version_all vega_version_available
Create a Vega/Vega-Lite htmlwidgetvegawidget
Shiny-output for vegawidgetvegawidgetOutput
Coerce vegaspec to JSONvw_as_json
Autosize vegaspecvw_autosize
Examine vegaspecvw_examine
Add a side-effect to a JavaScript handlervw_handler_add_effect
Construct a JavaScript handlervw_handler_data vw_handler_event vw_handler_signal
Rename datasets in a vegaspecvw_rename_datasets
Serialize data-frame time-columnsvw_serialize_data
Set base URLvw_set_base_url
Run Shiny demonstration-appsvw_shiny_demo
Determine vegaspec versionvw_spec_version
Convert to Vega specificationvw_to_vega