【发布时间】:2015-09-27 19:49:32
【问题描述】:
我正在尝试绘制一个多元函数。但是,由于某种原因,无论我使用哪种颜色,函数总是以黑色绘制...看来 col="lightgreen" 参数不起作用。有人知道为什么吗?
# Define Sequences for Multivariate Function
xf3x1 <- seq(-100, 100, length=500)
xf3x2 <- seq(-100, 100, length=500)
# Outer Calculates the Cartesian Product
z <- outer(xf3x1,xf3x2,function(xf3x1,xf3x2) xf3x1*xf3x2)
persp(xf3x1,xf3x2,z,col="lightgreen",theta=30,phi=20, main="Problème 3: Function 3")
【问题讨论】:
-
有趣。其他颜色也不行。它总是黑色的