【问题标题】:Draw hyperplane in R?在R中绘制超平面?
【发布时间】:2009-11-01 19:13:17
【问题描述】:

如何在 R 中绘制 3D 超平面(给定方程)? (即 3d 等价于“abline”)

提前致谢,

【问题讨论】:

    标签: r plot


    【解决方案1】:

    您可能需要包 scatterplot3dHH(函数 regr2.plot)。例如,请参阅此 example for scatterplot3d

    【讨论】:

    • 另见curve3d() 包中的emdbook
    【解决方案2】:

    Lattice supports 3D charts。在the LearnR blog 上查看来自Lattice: Multivariate Data Visualization with R 的一些不错的示例。例如,wireframe():

    pl <- wireframe(fit.linear + fit.loess.1 + fit.loess.2 +
    +     fit.locfit ~ wind * temperature | radiation, grid,
    +     outer = TRUE, shade = TRUE, zlab = "")
    

    【讨论】:

    • 非常感谢:rcs 的回复解决了一个守时问题,但从长远来看,感谢您的链接:那里的地块 R 非常出色......
    猜你喜欢
    • 1970-01-01
    • 2015-02-12
    • 2021-12-08
    • 2020-02-04
    • 2021-05-08
    • 2016-06-19
    • 2014-07-13
    • 2013-04-26
    • 2018-03-12
    相关资源
    最近更新 更多