Marwan Khawaja wrote:> > Hello, > I am trying to replicate example 4 in the package 'scatterplot3d': > > s3d.dat_data.frame(cols=as.vector(col(my.model4)), > rows=as.vector(row(my.model4)), > value=as.vector(my.model4)) > scatterplot3d(s3d.dat, type="h", lwd=5, pch=" ", > x.ticklabs=colnames(my.model4), y.ticklabs=rownames(my.model4), > main="Conditional probabilities, Model 3") > > Nice! but, > 1) Not clear how to attach a vector of alphanumeric labels for rows and > columns -- instead of the rownames.What about scatterplot3d(...., x.ticklabs = c("label 11", "label 12", ....), y.ticklabs = c("label 21", label 22", ....)) See ?scatterplot3d.> 2) What is the 'pch' option for producing vertical lines (for the values) > exactly the size of the 'boxes'?Well, 'pch' specifies the symbol/character for plotting points (as mentioned in ?scatterplot3d), not anything regarding lines. To obtain vertical lines, use type = "h" as common for R graphics (mentioned in ?scatterplot3d as well). The width of the lines can be specified with the argument lwd (cf. ?par). Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hello, I am trying to replicate example 4 in the package 'scatterplot3d': s3d.dat_data.frame(cols=as.vector(col(my.model4)), rows=as.vector(row(my.model4)), value=as.vector(my.model4)) scatterplot3d(s3d.dat, type="h", lwd=5, pch=" ", x.ticklabs=colnames(my.model4), y.ticklabs=rownames(my.model4), main="Conditional probabilities, Model 3") Nice! but, 1) Not clear how to attach a vector of alphanumeric labels for rows and columns -- instead of the rownames. 2) What is the 'pch' option for producing vertical lines (for the values) exactly the size of the 'boxes'? TIA Marwan Oops! platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 1 minor 5.0 year 2002 month 04 day 29 language R -------------------------------------------------------------------------------- -------------------------------------------------------- Marwan Khawaja - http://webfaculty.aub.edu.lb/~mk36/ If you have MS Internet Explorer! -------------------------------------------------------------------------------- -------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hello, I am trying to plot a matrix (14 by 14) of some values, using scatterplot3d(s3d.dat, type="h", pch=" ", lwd=20, + y.ticklabs=c("CA", "DS", "HO", "HA", "TA", "LA","ED","AL","RE","DZ","HK","SW","DA","QU"), + x.ticklabs=c("CA", "DS", "HO", "HA", "TA", "LA","ED","AL","RE","DZ","HK","SW","DA","QU"), + col.grid="lightblue", xlab="Origin", ylab="Destination", highlight.3d=TRUE, main="Conditional Probabilities, Model3") But I am having two problems with the labels: (1) only six labels are showing in the graph, and (2) some of the labels in the y axis are cluttered! Is the solution to add xlim, ylim to the function -- so labels look nice? I only receive the 'digest' so please cc directly to my address above. TIA for your help Marwan -------------------------------------------------------------------------------- -------------------------------------------------------- Marwan Khawaja - http://webfaculty.aub.edu.lb/~mk36/ If you have MS Internet Explorer! -------------------------------------------------------------------------------- -------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._