-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Shiny implementation due to loss of font proportions when resizing #70
Comments
Hi @barabas14 Thank you for using tidyplots! The way I see this problem In tidyplots, I chose to use absolute dimensions, e.g. Therefore, tools like RStudio, Positron, RMarkdown, Quarto and Shiny are currently not designed to work with absolute dimensions out of the box. There is little tidyplots can do about this, other than providing the fallback to free dimensions using What is the way forward?
Back to your question regarding Shiny I quickly tried to use tidyplots in a Shiny app. However, the results were not satisfactory. I basically had to give up absolute dimension to get it to work properly. I have to admit that I am not very experienced with Shiny, so there might definitely be ways to get it to work. My approach would be to produce a plot output file with little white space around the plot and then make this Currently, I do not have the capacity to research this in detail. But I will let you know in case I come across a solution. Best |
I opened a feature request regarding this topic over at the shiny repo. |
Description
Thanks for tidyplots, great and easy to use! However, I have a Shiny app where I want to place my plot and it should resize/rescale depending on the size of the box it is placed, or when changing screen sizes. The problem is that when setting
width
andheight
toNA
, the graph does not keep the proportions for the fonts, point size, etc.I know this is something that has been commented before, but is there any intention to fix it to make tidyplots more compatible with Shiny? It would be great if it could work!
Thanks in advance!
The text was updated successfully, but these errors were encountered: