Displaying 1 result from an estimated 1 matches for "nacol".
Did you mean:
nacl
2017 Jun 29
0
plot3D color ramp not working as expected
...e classes and colors instead of a continuous ramp
slice3D(x, y, z, colvar = colvar, theta = 60,
col = c("blue", "green", "red"), breaks = c(-0.5, -0.1, 0.1, 0.5))
# now set a vertical slice of the cube to NA
colvar[10,,] <- NA
# displays as expected; default NAcol = "white"
slice3D (x, y, z, colvar = colvar, theta = 60)
# does not display as expected--notice
# the colors shifted down in value, with NA and -0.5 to -0.1 now both white.
slice3D(x, y, z, colvar = colvar, theta = 60,
col = c("blue", "green", "red")...