0

I want to have strip and their texts for each facet on the right side of y axis instead of the top of x axis in ggplot2 in R.

I tried theme**(strip.placement = c("right"))** after removing the strip and their texts from top of the x axis by using theme(strip.text = element_blank(), strip.background = element_blank())+

Strip texts were disappeared from the top but I am not able to place them on the right side of the y axis.

  • Welcome to Stack Overflow. It's easier to help if you [make this question reproducible](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) by including a small representative dataset in a plain text format, all the relevant code and any error messages. – neilfws Jan 10 '23 at 04:00
  • You don’t need to remove the strips from the top. i.e., remove `theme(strip.text = element_blank(), strip.background = element_blank())` and try it with just `theme(strip.placement = "right")`. – zephryl Jan 10 '23 at 05:03
  • Hi @zephryl, thanks for responding. I tried this but the strips are still on the top of the x axis. – Saurav chokker Jan 10 '23 at 05:23
  • Ok - as @neilfws said, we’d need to see more of a reproducible example to troubleshoot further. – zephryl Jan 10 '23 at 05:29
  • Image of code is attached in the question. Please have a look @zephryl – Saurav chokker Jan 10 '23 at 08:32
  • The `facet_wrap()` function has a `strip.position` argument that you can use to change the strip from at the top to the right. – teunbrand Jan 10 '23 at 09:31

0 Answers0