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

legend label goes off plot #8

Open
gdevenyi opened this issue Jan 28, 2019 · 6 comments
Open

legend label goes off plot #8

gdevenyi opened this issue Jan 28, 2019 · 6 comments

Comments

@gdevenyi
Copy link

sliceSeries(nrow = 5, ncol=5, dimension = 1, begin=42, end=263) %>% 
anatomy(averageanatomy, low=300, high=1400) %>%
overlay(mincArray(model, "tvalue-site2km"), low = 2.179, high=3.055, symmetric = T, alpha=0.5) %>% 
addtitle("Site 2 km vs Site 80 km") %>%
legend("t-statistics") %>% 
contourSliceIndicator(averageanatomy, c(700, 1400)) %>% 
draw()

image

@jasonlerch
Copy link
Contributor

jasonlerch commented Jan 28, 2019 via email

@gdevenyi
Copy link
Author

Thanks, adjusting the overlay low and high does indeed fix the misalignment.

@gdevenyi
Copy link
Author

gdevenyi commented Jan 28, 2019

Following up here, there's still a bit of an issue with the vertical spacing, the bottom label is immediately adjacent to the bottom of the page, making it "feel" cutoff. A little bit of padding there would fix that.

@jasonlerch
Copy link
Contributor

jasonlerch commented Jan 28, 2019 via email

@gdevenyi
Copy link
Author

gdevenyi commented Sep 3, 2020

Having some odd issues with this again, weirdly inconsistent?
human_residuals
chimp_residuals

@gdevenyi
Copy link
Author

A followup here, exporting these in SVG, the text actually exists and runs off the page (defined by the white square background). One can then resize to fix the cutoff components after the fact during export to PNG from inkscape or perhaps other tools by telling the tool to consider the dimensions of the drawing rather than just the page size.

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