Skip to content

Aligning line plots and information on second y-axis #142

Answered by teunbrand
amegbor asked this question in Q&A
Discussion options

You must be logged in to vote

I think it might be a matter of just choosing the appropriate values.
You have width = 0.75 with n = 5 groups, so each group should be spaced 0.75 / 5 == 0.15 y-axis units apart.
So the values for the manual axis should be:

as.vector(outer(c(-0.3, -0.15, 0, 0.15, 0.3), 1:2, "+"))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amegbor
Comment options

Answer selected by amegbor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants