Closed JunYang2021 closed 1 year ago
Hi, I am afraid I am not a wizard here, but you could try to work with the margins: https://stackoverflow.com/questions/32543240/altering-the-margins-of-a-legend-in-r https://stackoverflow.com/questions/23628141/set-margins-to-cater-for-large-legend There might also be a way to reduce the font size in the graphics parameters : https://stackoverflow.com/questions/16905535/r-legend-trouble-how-to-change-the-text-size-in-legend https://stackoverflow.com/questions/23628141/set-margins-to-cater-for-large-legend Hope that'll help, yours, Steffen
@sneumann Thank you for your suggestion. Because the plot code was embedded in retcor
function, I can't directly change the margins or font size. I found that plot in Rstudio and then export to pdf can solve this problem partly. The legend can be displayed in plots of R studio with an acceptable width.
Hello! I want to use
retcor
function withobiwarp
method to correct retention time. With retcor function, there was a plot showing retention time deviation. However, I need to adjust the plot width to a very large value to display a complete legend (like the figure below). So what should I do to display a complete and appropriate plot? My code: