You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the plot_3d and render_polygons functions, I created a two-layer map to appear one after the other. The map I created with plot_3d is a population density map. I've added county boundaries under render_polygons. I can save maps that I normally create with plot_3d in high resolution with "render_highquality". but this is a problem in the two-layer map I created. I especially want the 3d map to be high resolution again. how do i do this?
here is my code:
# plotting 3D
try(rgl::close3d())
pop_matrix %>%
height_shade(texture = texture) %>%
plot_3d(heightmap = pop_matrix,
zscale = 250 / 2.5,
solid = F,
windowsize = c(1980,1080),
clear_previous=TRUE)
render_camera(theta = 0,
phi = 35,
zoom = 0.4,
fov = 90)
#We will apply a negative buffer to create space between adjacent polygons. You may
#have to call `sf::sf_use_s2(FALSE)` before running this code to get it to run.
sf::sf_use_s2(FALSE)
mont_county_buff = sf::st_simplify(sf::st_buffer(tr_admin,-0.003), dTolerance=0.001)
render_camera(theta=10, phi=20, zoom = 0.85, fov=0)
render_polygons(mont_county_buff,
extent = attr(delhi_raster,"extent"), bottom = -650, top=-653,
color = "#e69c6b",
parallel=TRUE,clear_previous=TRUE)
Hello,
Using the plot_3d and render_polygons functions, I created a two-layer map to appear one after the other. The map I created with plot_3d is a population density map. I've added county boundaries under render_polygons. I can save maps that I normally create with plot_3d in high resolution with "render_highquality". but this is a problem in the two-layer map I created. I especially want the 3d map to be high resolution again. how do i do this?
here is my code:
And additionally my stackoverflow post
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: