Gundala Viswanath <gundalav <at> gmail.com> writes: > I'm aware of the need to include lattice library. > I just didn't show it. Examples should be complete and self-running, as the posting guide says. > However my code still cant' produce the same results > as yours. > > My data.mat contain this form of output > > print(data.matrix) > > 11145 3545 8951 11097 16599 11100 > 8566 ...... (upto 100 more) > 11145 1.0000000 0.9979445 0.9966705 0.9855180 0.9775806 0.9949439 0.9579916 > 3545 0.9979445 1.0000000 0.9973328 0.9910627 0.9847413 0.9947414 0.9521648 > 8951 0.9966705 0.9973328 1.0000000 0.9882817 0.9829629 0.9938390 0.9558376 > 11097 0.9855180 0.9910627 0.9882817 1.0000000 0.9969120 0.9846531 0.9490246 > 16599 0.9775806 0.9847413 0.9829629 0.9969120 1.0000000 0.9785536 0.9383424 > .... > (up to 100 more) >
Send me the output of str(data.matrix). Or, much better, try to reproduce your problem with a simulated data set similar to the one I gave you. Dieter ______________________________________________ R-help@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.