Steven Mortimer wrote:> I have created a 5 column matrix of the data and here have shown the
> variable names of each column. I do not understand the error message given
> when I try to run the cloud function Thank you in advance for your help.
>
>> V1<-data[,1]
>> V2<-data[,2]
>> V3<-data[,3]
>> V4<-data[,4]
>> Gender<-data[,5]
>> library(lattice)
>> cloud(V1~V2*V3)
At least one of V1, V2 or V3 is not a vector that can be coerced to be
numeric, i.e. cannot be plotted this way.
Take a look at the data types / modes and you will see what is not OK:
str(V1)
str(V2)
str(V3)
Uwe Ligges
> Error in extend.limits(range(as.numeric(z), finite = TRUE)) :
> (list) object cannot be coerced to type 'double'
>
> [[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.