0
A
回答
2
只需添加更多點,其x值與以前的數據相同,並且有固定的y值。
所以,你有這樣的:
dfr <- data.frame(x = sample(100, 10, replace = TRUE), y = runif(10))
with(dfr, plot(x, y))
,並要添加
points(dfr$x, rep.int(0.5, 10), col = "blue")
有時間的x值應該不會影響任何東西。
相關問題
- 1. textContent as a number
- 2. Angular - orderBy string as number
- 3. mysql order string as number
- 4. Python plot base64 string as image
- 5. Activerecord query .where string as number
- 6. R plot中的mtext()
- 7. line plot with R
- 8. Bubble Plot - R
- 9. R plot in order
- 10. R plot plot legend行中的linebreak
- 11. pch in plot with R
- 12. r plot main,在R plot的主要選項中的迭代器
- 13. sp R包SpatialPolygons-Class plot transparent
- 14. R:4D plot,x,y,z,colors
- 15. R plot中的邊界
- 16. 移動R Plot標頭
- 17. 閃亮的R,Plot,ShinyApp
- 18. Entry Entry 20/2033
- 19. R plot:如何使用plot繪製水平線的直方圖()
- 20. Readline for user input overwrites previous entry in R
- 21. Tkinter Focusout Entry Validation
- 22. show str(...)as在R表Markdown
- 23. R plot。上與第二Y軸
- 24. r plot中的垂直剖面()
- 25. Scatter plot R中的文字標籤
- 26. R plot中的水平比例尺
- 27. Sunburst R的data.frame的結構問題plot
- 28. R-plot數字而不是點
- 29. R plot旋轉點或填充箭頭
- 30. plot r兩個分類變量
rep.int函數是我正在尋找的。 –