a hk wrote:> Hi, everyone,
> I am green with R. Now I am working on a graphics projects.
> I have a dataset:
> -----------------------
> a b c
> 1 228 83 6.69
> 2 274 83 7.36
> 3 320 83 8.86
> 4 366 83 7.36
> 5 412 83 6.81
> 6 228 129 5.58
>
> ---------------------
> I want to draw a 3d graphic.
> I use the code
> __________________
>
scatterplot3d(avs$a,avs$b,avs$emprical,type="h",angle=35,scale.y=0.7,pch=16,
> + y.ticklabs(0,500,by=100),y.margin.add=0.1)
The code is incorrect, hence here a similar example:
library(scatterplot3d)
s3d <- scatterplot3d(avs$a, avs$b, avs$c, type="h",
angle=35, scale.y=0.7, pch=16,
y.margin.add=0.1)
polygon(s3d$xyz.convert(x = c(250, 400, 400, 250),
y = c(90, 90, 120, 120),
z = c(7, 7, 7, 7)))
Uwe Ligges
> _________________________________
>
> Now I want to add a rectangle on the x,y axis, does anyone could tell me
the code? I try a lot, but don't find.
> and another question, how do I revoke the "point3d" function?
> Thank you so much.
>
> XiangGang
>
>
>
> ---------------------------------
> Got a little couch potato?
> Check out fun summer activities for kids.
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.