阅读背景:

在faceted ggplot2中创建一条宽度来自dataframe的线

来源:互联网 

I am looking to create a graph that looks like the second picture below, using data provided below. However, I can't get the width of the lines to correspond to the axis, "B", and to take the values from datlines$width. What I'd like is for geom_hline (or maybe geom_ribbon?) to read the widths from the data.frame "datlines" and create a line where the width is equal to the number provided in datlines$width. So far I haven't been able to make it work, even if I specify "size = width" in the geom_hlines call.I am looking to create a graph that looks like




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: