butterfly <- fu
rstudio吧
全部回复
仅看楼主
level 2
丶丶丨一 楼主
butterfly <- function(t, color = "purple")
{ x <- sin(t)*(exp(1)^cos(t)-2*cos(4*t)-(sin(t/12))^5)
y <- cos(t)*(exp(1)^cos(t)-2*cos(4*t)-(sin(t/12))^5)
plot(x, y, type = "l", col = color)
}
t = seq(-100*pi, pi, 0.01)
butterfly(t)
求大神教这个蝴蝶图怎么填充颜色?
2017年09月26日 14点09分 1
1