Skip to content
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

How to set the size/margin when saving image? #49

Closed
chuliangcui opened this issue Apr 23, 2019 · 4 comments
Closed

How to set the size/margin when saving image? #49

chuliangcui opened this issue Apr 23, 2019 · 4 comments

Comments

@chuliangcui
Copy link

the image is big and the legend is out of the border. How can i change the image size or font size?

@jolars
Copy link
Owner

jolars commented Apr 24, 2019

Please post a detailed question, some reproducible code, and an image of the offending plot.

@chuliangcui
Copy link
Author

tiff("Desktop/1.tiff") a=c(1:12) b=c(1:14) plot( euler(list(aaaa=a, bbbbbbbb=b )), fills = list(fill = c("red", "deepskyblue3"), alpha = 0.4), quantities = TRUE) dev.off()

1.pdf

Hi, above is the codes and image i export. An simplified version of my data, because the overlap is big and the file name is long, so the name is outside of the margin. I can of course use a shorter name, but I'm just curious is there a way to modify the text size?
Thanks a lot for the help!!

@jolars
Copy link
Owner

jolars commented Apr 25, 2019

Hm, I understand. You can either supply plot.euler() with labels = list(fontsize = 8) or something smaller to decrease the font size, but otherwise I suggest that you just increase the margins of the plot window by calling tiff() with a greater width than height. You would get something like the following.

image

@jolars jolars closed this as completed Apr 25, 2019
@chuliangcui
Copy link
Author

Thanks! It worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants