powered by
If you have nodejs installed, you can use this function to compile a Vega-Lite specification into a Vega specification.
vw_to_vega(spec)
An object to be coerced to vegaspec, a Vega/Vega-Lite specification
vegaspec
S3 object of class vegaspec_vega and vegaspec
vegaspec_vega
# NOT RUN { vw_spec_version(spec_mtcars) # } # NOT RUN { # requires nodejs to be installed vw_spec_version(vw_to_vega(spec_mtcars)) # }
Run the code above in your browser using DataLab