Displaying 3 results from an estimated 3 matches for "polygon3d".
2006 Jan 04
2
Using 'polygon' in a 3d plot
I'm new to R, after many years of using Matlab. I've found the R
function 'polygon' to be nearly equivalent to the Matlab function
'patch'. For example, the R commands:
plot(c(0, 5), c(0, 4), type = 'n', asp = 1, ann = FALSE)
x <- c(1, 2, 2, 1.5, 1)
z <- c(1, 1, 2, 1.7, 2)
polygon(x, z, col = 'green')
produce a plot with a small green shape exactly
2020 Oct 22
0
3d plot of earth with cut
...xlab = "", ylab
= "", zlab = "",
normal_x = x, normal_y = y, normal_z = z)
clipFn <- function(coords) {
pmax(coords[,1], coords[,2]) # Just an example...
}
clipObj3d(ids["surface"], clipFn)
Filling in the exposed surface could be done with polygon3d(), with some
work to construct the polygon. Displaying the function across that
surface could be done in a couple of ways, either by using a texture map
(like for the map), or subdividing the polygon and setting colour by the
coordinates of each vertex.
Note that the clipObj3d function isn'...
2020 Oct 21
6
3d plot of earth with cut
Hello,
Could someone suggest a package/way to make a 3D raster plot of the Earth
(with continent boundaries), and then make a "cut" or "slice" of it such
that one can also visualize some scalar quantity as a function of the
Radius/Depth across that given slice ?
Formally, I would have a given, fixed longitude, and a list of vectors
{latitude, radius, Value}
that would show