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

append 2 images and set margin/positions #348

Open
antoine4ucsd opened this issue Jun 8, 2022 · 0 comments
Open

append 2 images and set margin/positions #348

antoine4ucsd opened this issue Jun 8, 2022 · 0 comments

Comments

@antoine4ucsd
Copy link

Hello
I am trying to combine 2 plots but I need to adjust the position of the bottom plot to be aligned with position 1 of the x axis of the top plot. I am trying the following (among many other attempts...):

bottom_image<- image_border(image_background(bottom_image_raw, "white"), "white", geometry = "500x10")
final_plot <- image_append(image_scale(c(topimage,bottom_image), "1200"), stack = TRUE)

but as you can see on the attached output, the bottom image is too far on the left. the 5'LTR box needs to start at pos 1 of the above figure. how can I adjust the postion of the bottom figure only (or add a left border first?)

if there is a better to combine those files (raster/ggplot), I am eager to learn alternative options.

thank you!
test

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

1 participant