enter image description here -> how the plot currently looks like
enter image description here ->how it should look like
Hi there!
I’m having problems creating this plot so that all the 4 components have the right proportions. I would like to rotate the diagonal line (in the right corner) in a specific way so that it is exactly placed diagonally at the same height as the trendline of the basis plot with the two conditions x1 and x2. In other words, the dashed line of the upper right “plot” is supposed to continue the trendline of the basis plot. Then when I enlarge or minimize the plot, it shouldn’t lose these proportions.
The other two graphs are supposed to be placed right alongside the basis plot (as in the second image). They aren’t relevant for the question (I suppose).
I attached images of how the plot currently looks like and how it should look like.
Here the code for the right upper graph:
cowplot::ggdraw() +
inset_element(
diag_den
, left = 0.61 -0.025
, bottom = 0.61 -0.025,
, right = 1 -0.025
, top = 1 -0.025
, align_to = “plot”
)
I would be glad for helpful answers.
Thanks a lot!
Yours
Nancy Y.
I tried many things for example changing the sizes and proportions of the other two plots but it doesn’t work as I imagined it.
meth_hiwi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.