Questions tagged [svglite]

5 questions
6
votes
1 answer

How to successfully use {pkgdown} when `svglite` graphics device is used

To address an issue in my R package, I wish to try out an svglite graphics device for rendering ggplot plots: knitr::opts_chunk$set(dev = "svglite") But, if I do so, the {pkgdown} workflow fails (failure log) with the warning messages: 1:…
Indrajeet Patil
  • 4,673
  • 2
  • 20
  • 51
1
vote
0 answers

svglite should not generate svg with height and width

I am using svglite to save SVG files of R plots. I get SVG files that have height and width in them. Unless I really misunderstand the docs, this is not what I expect. https://svglite.r-lib.org/articles/scaling.html The SVG files produced by…
No More Hacks
  • 299
  • 4
  • 14
1
vote
0 answers

how can I make svglite render portable svgs on travis-ci?

Plots rendered through svglite look differently when rendered through Travis, then when rendered locally. This happens, because my local machine (macOS in this case) aliases different (more standard?) fonts for the default R…
maxheld
  • 3,963
  • 2
  • 32
  • 51
0
votes
1 answer

svglite, svgPanZoom not able to plot in R shiny

According to the post How to display scatter plot with R Packages:svgPanZoom? I tried to replicate a zoomable plot in R shiny. Can someone help me with my code? Why can't I reproduce this code? library(shiny) library(svglite) library(svgPanZoom) #…
TarJae
  • 72,363
  • 6
  • 19
  • 66
0
votes
1 answer

Cannot load library svglite in R version 3.5.2

I want to export an SVG of an image I generated in ggplot2. I've tried reinstalling and installing svglite and installing with dependencies = TRUE but I've still encountered the same error. I'm using ggplot2, reshape, and…
HS1300
  • 59
  • 1
  • 10