在R中绘制超平面?

发布于 2024-08-09 03:40:34 字数 66 浏览 2 评论 0 原文

如何在 R 中以 3D 形式绘制超平面(给定方程)? (即 3d 相当于“abline”)

提前致谢,

How does one go about drawing an hyperplane (given the equation) in 3D in R ?
(i.e. 3d equivalent to "abline")

Thanks in advance,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

┈┾☆殇 2024-08-16 03:40:34

您可能需要软件包scatterplot3dHH(函数regr2.plot)。例如,参见这个 示例 用于scatterplot3d

You probably want the packages scatterplot3d or HH (function regr2.plot). See, e.g., this example for scatterplot3d.

冷月断魂刀 2024-08-16 03:40:34

Lattice 支持 3D 图表。请参阅 Lattice:使用 R 进行多元数据可视化LearnR 博客。例如,使用wireframe()

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

Lattice supports 3D charts. See some of the nice examples from Lattice: Multivariate Data Visualization with R on the LearnR blog. For instance, with wireframe():

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文