Code for type=“h” in ggplot2

后端 未结 3 409
再見小時候
再見小時候 2021-01-18 08:29

This may sound really simple but I\'m trying to find the equivalent code to plot(x,y, type=\"h\") as a qplot code. I already have:

qplot(x,y,         


        
3条回答
  •  长情又很酷
    2021-01-18 08:48

    the answer of user12202013 is totally correct, but if you want to use qplot you can do it as follows:

    qplot(data = data, x = x, binwidth = 0.5)
    

    But, I think, if you need some help on R, you should go to Stackoverflow

提交回复
热议问题