Questions tagged [rayshader]

Create and Visualize Hillshaded Maps from Elevation Matrices

Uses a combination of raytracing, spherical texture mapping, lambertian reflectance, and ambient occlusion to produce 2D and 3D data visualizations and maps. Includes water detection and layering functions, programmable color palette generation, several built-in textures for hill shading, 2D and 3D plotting options, and the ability to export 3D visualizations to a 3D printable format.

62 questions
5
votes
1 answer

Increase resolution of R rayshader image

I'm trying to make an image using rayshader package. I've been happy that I've been able to create a png file using code like so: library(ggplot2) library(rayshader) example_plot <- …
Jacqueline Nolis
  • 1,457
  • 15
  • 22
4
votes
0 answers

How to create rayshader time-series animation using R?

I want to create a timelapse visualization of terrain motion using rayshader packages. I found this web article which gives a useful tip by using Venµs images. The script which in the article is…
Gokul Anand
  • 177
  • 12
3
votes
3 answers

Rayshader in Rmarkdown file?

When I render a Rayshader graphic, it pops open Xquartz on my mac, no problem, but what if I wanted to include it in my Rmarkdown document, it just shows the code, no graphic? I understand this is a heavy graphic intensive render, but looking for…
Daniel_j_iii
  • 3,041
  • 2
  • 11
  • 27
3
votes
1 answer

How to export high quality resolution images using Rayshader R

I have been using the Rayshader package in R in conjunction with RStudio and have been producing some nice 2D and 3D images. I usually export images directly from the RStudio viewing panel using the drop down box and then by selecting the format…
RJF
  • 41
  • 2
3
votes
1 answer

Correcting satellite image overlays for Rayshader

I'm trying to improve the look of Rayshader by overlaying more recent (higher detail) satellite imagery (that I'm getting from the {leaflet} packages) but the overlay doesn't match with the 3D rendering. Ideally I'm looking for a open-source…
2
votes
1 answer

Polygon edges and sides distorted in rayshader render

I've been trying to plot a 3D plot of some spatial polygons, but I cannot render the sides and edges of the polygons properly. Below is the code I used to produce the plot below. # Produce the 2D plot first. ggplot() + geom_sf(data = strips,…
KO 88
  • 55
  • 5
2
votes
1 answer

hillshade issue with rayshader ggplot

Based on the code and data (obtained from rayshader tutorial website) provided in the post, I am getting the error shown below. What might be causing it and how can it be fixed? Error: Error in hillshade[, , 1] * scales::rescale(shadowmap,…
Ed_Gravy
  • 1,841
  • 2
  • 11
  • 34
2
votes
1 answer

Change plot size of rglwidget in shiny

I would like to stretch these plots to the window size or at least make them bigger: ui.R options(rgl.useNULL = TRUE) library(shiny) library(rgl) shinyUI(fluidPage( tabPanel("Ray", mainPanel( …
Ben
  • 1,432
  • 4
  • 20
  • 43
2
votes
0 answers

R rayshader package plot_gg gives blank window

I have a problem with converting ggplots into rayshader 3d graphs. I have tested many different examples on the rayshader homepage but it just won't work. For example this code I have from the demonstration examples of the official…
veka
  • 37
  • 6
2
votes
0 answers

how to prevent grey noise when using render_highquality() in rayshader

I need to output a high res image using render_highquality using plot_gg() of the rayshader/rayrender package. However, I always seem to get a strange grey noise filter over my image, how can I prevent this from happening? (this does not happen if I…
L Smeets
  • 888
  • 4
  • 17
2
votes
1 answer

How can I convert a rayshader map into a mp4 video while keeping the labels, compass and title during the animation?

Thanks to this wonderful tutorial I've created a gif of a 3D map in order to visualize the spread of a 12 meters sea level rise in the downtown of Wellington ! Screeshot of the map: Now I would like to know if it was possible to keep the labels,…
wanderzen
  • 119
  • 2
  • 12
2
votes
1 answer

R Rayshader Elevated Us Map and Points

I'm trying to create an stl file based on a US map with different locations, as points, at different heights based on a data value. I can create the points part relatively easily. library(ggplot2) library(data.table) library(rayshader) myPoints <-…
James Holland
  • 1,102
  • 10
  • 17
2
votes
1 answer

Can I re-scale the x/y axis aspect ratio in R with rayshader?

I have some data from lab equipment that can be represented as a matrix by a contour plot/heatmap. I would like to try illustrating this data in R with the rayshader package. My problem is that the data is far from square in shape, the matrix is 33…
Paul
  • 2,877
  • 1
  • 12
  • 28
2
votes
0 answers

How do I turn this rayshader plot into a Gif?

I made this cool map with rayshader to plot the amount of industrial water use by the county. But I don't know how to go from plot you move with the mouse to a Gif. Here's the code for the non-Gif Rayshader…
matt_lnrd
  • 329
  • 1
  • 9
2
votes
1 answer

Could not find function "plot_gg" from the rayshader package

Running this script and getting the error: could not find function "plot_gg" Tried uninstalling and installing ggplot2 again Running 3.6.0 library(rayshader) library(ggplot2) library(tidyr) gg = ggplot(diamonds, aes(x, depth)) + …
1
2 3 4 5