如何在一张图中绘制多条ecdf线

时间:2020-05-05 22:31:22

标签: r ggplot2

如何绘制一张图,其线为ecdf_Q2 <-50、40、30、20和10,而不是50?我需要ggplots相互重叠。谢谢!

ecdf_Q2 <- **50** %>%   
  ecdf.shift(ratio_threshold, .) %>%   
  filter(nobs > 20) %>% 
  ggplot(aes( x = OUR_ratio_cutoff, y = prob)) +
    geom_line() +
    geom_point() +
    theme_bw(base_size = 12) +
    theme(panel.grid = element_blank()) +    
    scale_y_continuous(limits = c(0,100),    
                       breaks = seq(0,300, by = 10),
                       expand = c(0,0)) +   
    scale_x_continuous(limits = c(0,2), 
                       breaks = seq(0,3, by = 0.1),
                       expand = c(0,0))

0 个答案:

没有答案