[R] Axis Location/Data view in scatterplot3d
Bret Collier
bacollier at ag.tamu.edu
Wed Oct 31 22:51:52 CET 2007
All,
I constructed a fairly simple plot using the below and scatterplot3d.
However, the axis locations in scatterplot3d seem to 'hide' quite a bit
of the points in my graphic based on the viewing angle, hence not
adhering to Tufte's rules. I tried to determine if I could rotate the
graph and relocate all three axis (origin (0, 0, 0))so they would be at
the back left so the plotted points would slope down toward the viewer.
Using 'angle' and 'axis' did not get me any closer. Does anyone have
any suggestions?
TIA,
Bret
for(Days_Nesting in 1:55){
Breeding_Period<-1:118
DSR_RGWT= exp(6.6205449-0.0589883*Days_Nesting)/(1+
exp(6.6205449-0.0589883*Days_Nesting))
DSR_BS<-DSR_RGWT^Breeding_Period
DSR_Final<-as.data.frame(cbind(Days_Nesting, Breeding_Period, DSR_BS))
write(c(t(DSR_Final)), "location.txt", append=T, ncolumns=3)
}
dsr_data<-read.delim("location.txt", header=F, sep="")
attach(dsr_data)
scatterplot3d(V1, V2, V3, grid=F, box=T, pch=20, xlim=c(1,
55),ylim=c(1,118), zlim=c(0, 1))
>version
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 6.0
year 2007
month 10
day 03
svn rev 43063
language R
version.string R version 2.6.0 (2007-10-03)
--
Bret A. Collier, Ph.D.
Department of Wildlife and Fisheries Sciences
Texas A&M University
College Station TX 77843
979-458-0500; bret at tamu.edu
More information about the R-help
mailing list