Using the R plot function to plot another function, how can I increase the granularity so that the graph looks smooth?使用 R plot函数绘制另一个函数,如何增加粒度以使图形看起来平滑?Ie something analogous to seq(by=.001) ?即类似于seq(by=.001)东西?
plot(sin, to=100)
1 个解决方案
解决方案1
2 已采纳 2021-08-21 23:39:30
Try plot(curve(sin, ...)) , and then set n= to your desired resolution.尝试plot(curve(sin, ...)) ,然后将n=设置为您想要的分辨率。