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
0
votes
1 answer

Variable zoom on 3D rayshader rgl plot

How can I enable scroll wheel zoom on rgl rayshader plots? Older (2019) rayshader plots seemed to have this functionality by default (I can still open the old html files and they retain the functionality.) However, plots generated today (2022) do…
D Bolta
  • 423
  • 3
  • 8
0
votes
0 answers

R Rayshader Render Points Don't Show as Expected

I'm trying to use the rayshader package in R to produce an elevation plot with points on the surface (or floating just above) that represent where samples were taken. However, I can't seem to get the points to show up on the map, or when they do,…
0
votes
0 answers

plot_gg not giving desired output with geom_polygon and geom_point

Based on the code and data below how can I get an output similar to the desired output? Current output: 2D output: Desired 3D output (obtained from here): Code + data: library(tidyverse) library(maps) library(rayshader) # Read the state…
Ed_Gravy
  • 1,841
  • 2
  • 11
  • 34
0
votes
0 answers

Convert 2D plots 3D using rayshader

I am trying to learn more and more about rayshader which is a fantastic package. Based on the code and data below , how can I convert the 2D plots to 3D? I tried the plot_gg function, but it does not convert the lines and histogram to 3D so, maybe I…
Ed_Gravy
  • 1,841
  • 2
  • 11
  • 34
0
votes
1 answer

rayshader plot_gg stat(nlevel) issue

Based on the code below how can I fix this error: Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace ‘terra’ 1.6-7 is being loaded, but >= 1.6.16 is required In addition: Warning message: `stat(nlevel)` was…
Ed_Gravy
  • 1,841
  • 2
  • 11
  • 34
0
votes
0 answers

Line size in ggplot2 3.4.0 and rayshader

Just updated ggplot2 from 3.3.6 to 3.4.0. It has been documented that new version of ggplot2 replaced size with linewidth in geom_line() and geom_sf(). However, it appears that the new version does not get along well with rayshader package on my…
Zhiqiang Wang
  • 6,206
  • 2
  • 13
  • 27
0
votes
1 answer

Prevent changing text to 3d visualisation using plot_gg

I am trying to visualise the following ggplot2 object in 3d using rayshader library. Thanks! However, I cannot find a way to prevent the text labels from becoming 3d, only the points. Is there a way to do this? plot_gg(plot_cities …
0
votes
0 answers

plotRGB error when calling plot_map() in rayshader package in R

I'm trying to use the rayshader package in R to plot elevation data, but I'm getting an error when I call the plot_map() function. I can't even get the example to run without running into the following error. Any ideas on how to get this function to…
0
votes
1 answer

Customise or reduce the height of the scale triangle legend bar using plot_gg() in rayshader package for 3D plot

I am using the rayshader package to render a 3D plot with plot_gg() function. How can I customize or reduce the height of the scale triangle legend bar of the plot since it will cover the plot partly when we increase the argument scale (e.g. scale…
Duc Du
  • 1
  • 1
0
votes
1 answer

rayshader 3D ggplots - issue with z values

I am trying to exploit some features of R to plot some crypto data. I am trying to use some examples found at https://www.tylermw.com/3d-ggplots-with-rayshader/ but I am having an issue since on the Z axis I do not get any data. I have on the…
Leonardo
  • 3
  • 2
0
votes
1 answer

Geospatial analysis using tif and xml files

I'm trying to self-teach myself how to make topographical maps in R using the rayshader package. I tried emulating the code this twitter account shared. I can't quite figure out how to get the tif and xml files to work like how the code shared on…
yana
  • 13
  • 3
0
votes
2 answers

Problems using `plot_gg()` from `rayshader` package - R

I am trying to replicate the example shown here, made with rayshader package: https://www.rayshader.com/reference/plot_gg.html I was focused in particular on the histogram. Below I report the…
GiacomoDB
  • 369
  • 1
  • 10
0
votes
0 answers

Is there an R package to plot 3D stacked bars over a map?

I have been trying to plot 3D bars over a map. I'm able to plot 3D bars using rayshader package, but this package takes height from fill or color arguments in ggplot. I would like to plot stacked or waterfall bars over a map. Something like this…
0
votes
0 answers

How can I install rayshader on an AWS machine?

I have been trying to solve this problem for a few hours but I can't find any way to do it. The command that I have used is: install.packages("rayshader") I have tried to install the 'rayshader' package on an AWS machine with an EC2 instance. The…
0
votes
1 answer

how to use the rayshader packge for 3D surface from x, y, z

imagine I have a 3 columns matrix x, y, z where z is a height/intensity of x and y. x = runif(1000) y = runif(1000) z = rnorm(1000) How to use the rayshader packge for 3D surface from x, y, z? although the rgl could do it, i think is it possible to…
hees
  • 71
  • 5