int_times水平线段
gene lag stim num
a1 46.53000 173.5300 1
a2 101.47000 162.5900 2
a3 14.00000 259.0000 3
a4 6.43276 134.1821 4
a5 28.00000 182.0000 5
a6 16.00000 198.0000 6
这里是我的GG码
ggplot(int_times,aes(x=stim,y= num,colour=gene)) +
scale_y_continuous(labels=c('should not exist',int_times$gene)) +
# geom_line(aes(position)) +
geom_segment(aes(xend=length(stim),yend=.01)) +
xlab('x') +
ylab('y') +
opts(title = 'Multiple Gs')
我无法弄清楚如何让HLINE工作,但我想每一件事情,现在是这样的,除了每条线在其对应的y轴上为单独的水平线段外
想想你需要做什么。您需要两个分别具有x和y坐标的点。当需要4个时,你已经给出了2个坐标。你必须给出明天和年底的因素水平。 –
ystart是一个参数? – Doug
是啊道格,我刚刚开始时也和这个人一起挣扎,请看下面。 –