dreamRs / esquisse

RStudio add-in to make plots interactively with ggplot2
https://dreamrs.github.io/esquisse
Other
1.78k stars 232 forks source link

Allow choosing a font family #275

Open vikasrawal opened 3 months ago

vikasrawal commented 3 months ago

Can esquisse allow user to select a font family? This would be useful if users have to produce production ready output from esquisse. I am trying to use esquisse in a shiny app, and would like to be able to choose font family from the frontend.

I am wondering if you get too many such feature requests, and the view is that making esquisse infitely flexible to allow all the ggplot2 options from estquisse is, for some reason, not desitable (for example, to keep esquisse simple).

One way to handle this would be to allow the user to edit the code generated by esquisse, and then run it from the front-end. I guess, this may, however, have security implications. It would be important to restrict this to only ggplot2 commands, and not allow user to run any other R or system command.

pvictor commented 2 months ago

Hi, Yes that would be an interesting feature, maybe possible through support to the {thematic} package (https://rstudio.github.io/thematic/).