You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you make the plot too narrow (desirable for aesthetic reasons to reduce whitespace), the Domains caption and Judgement legends overlap. See screenshot.
Expected behavior
This is sort of expected, but it can make it tricky to limit whitespace when you have a lot of studies whilst also preventing overlap of the Domains caption and Judgement legend. One option to make it a bit more versatile would be to push the Domain caption to the lwft edge of the Study labels rather than placing it at the left edge of the traffic lighted area. Alternatively, the font size auto-adjusts to the plot dimensions but i've no idea how that'd work.
Screenshots
Desktop (please complete the following information):
OS: Windows 10
Interface: RStudio/R/robvis
Version: "Mountain Hydrangea" 2023.06.1 Build 524/4.3.1/CRAN version of robvis
Additional context
As a temporary workaround, you can add a line to your ggplot object to push the Domain caption further left and/or reduce font size:
Yes, this is a tricky problem to solve, and to be honest, the best approach I have found is to leave it up to the user to reduce the font size/move the domain names. I personally don't like that the legend is not aligned with the edge of the plot but rather with the edge of the "Study" axis label, but it is definitely a personal preference!
Somewhat relatedly, the development version of robvis contains a function called rob_save() which tries to use some information about the plots to set reasonable defaults for the width/height when writing the file out. However, this function does not account for legend text size.
One other option would be to include an argument to "stack" the domain names and judgement labels, that users could specify if they wanted a narrow plot?
Cool thanks for clarifying. Yes, a tricky one. I'll just stick to my manual fix for now then. Will leave it up to you as to whether you wanna close this or not!
Cheers
Matt
P.S. robsave seems to perform pretty well too - thanks for flagging!
Describe the bug
When you make the plot too narrow (desirable for aesthetic reasons to reduce whitespace), the Domains caption and Judgement legends overlap. See screenshot.
To Reproduce
And observe the outputted plot.
Expected behavior
This is sort of expected, but it can make it tricky to limit whitespace when you have a lot of studies whilst also preventing overlap of the Domains caption and Judgement legend. One option to make it a bit more versatile would be to push the Domain caption to the lwft edge of the Study labels rather than placing it at the left edge of the traffic lighted area. Alternatively, the font size auto-adjusts to the plot dimensions but i've no idea how that'd work.
Screenshots
![image](https://private-user-images.githubusercontent.com/42059798/304709919-8522dc89-3ce3-4820-bc20-382e1af2c20f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4NjUzODUsIm5iZiI6MTcyMzg2NTA4NSwicGF0aCI6Ii80MjA1OTc5OC8zMDQ3MDk5MTktODUyMmRjODktM2NlMy00ODIwLWJjMjAtMzgyZTFhZjJjMjBmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDAzMjQ0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBiZjgxMWM5MmEzNzU0MmQ4NTliY2M3OTdjOTAxYTQwNWNmNzBmNWQ0OWQyNWQ1OTc3YjZlMDVmNmU5OWQzMmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.igjCt3VjCnrMVJLQUNq3V-hAssmzKX2EP9gRT1dSJ2I)
Desktop (please complete the following information):
Additional context
As a temporary workaround, you can add a line to your ggplot object to push the Domain caption further left and/or reduce font size:
The text was updated successfully, but these errors were encountered: