Corner Labels in ggplot2

前端 未结 4 1783
后悔当初
后悔当初 2020-12-29 10:31

I\'m interested in trying to create simple corner labels for a multipanel figure I am preparing in ggplot. This is similar to this previously asked question, but the answers

4条回答
  •  抹茶落季
    2020-12-29 11:31

    An example:

    d <- data.frame(x = runif(16),
                    y = runif(16),
                    grp = rep(letters[1:4],each = 4))
    
    ggplot(d,aes(x = x,y = y)) + 
    facet_wrap(~grp) + 
    geom_point() + 
    theme(strip.text = element_text(hjust = -0.05),
          strip.background = element_blank())
    

    enter image description here

提交回复
热议问题