[R] Help with wireframe graphics problem (newbie)

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Oct 6 16:01:53 CEST 2011



On 06.10.2011 00:50, David Wiley wrote:
> All,
>
> I've read several tutorials re: generating wireframes, but am clearly
> missing something. I have data along the lines of:
>
>> tbl [1:10,]
>     Visits Activity Course.Grade
> 1      17        2        18.31
> 2       7       11        20.67
> 3       9       17        24.69
> 4      28       71        38.72
> 5      43      107        45.46
> 6      14        5        47.77
> 7      25       51        57.81
> 8      32       27        59.46
> 9      60       43        64.39
> 10     31       46        66.26


Looks like you are after a 3D scatterplot rather than a wireframe - the 
latter only works on a regular grid of Vistits and Activity.

Uwe ligges


> When I run the command:
>
> wireframe(Course.Grade ~ Visits * Activity, data = tbl)
>
> I get an appropriately labeled, but empty, cube. Can anyone tell me
> why there's no data in my cube?
>
> Thanks in advance,
>
> David
>
> ______________________________________________
> 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.



More information about the R-help mailing list