Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector memory exhausted #2

Open
MauKruisheer opened this issue Mar 5, 2024 · 1 comment
Open

Vector memory exhausted #2

MauKruisheer opened this issue Mar 5, 2024 · 1 comment

Comments

@MauKruisheer
Copy link

Thank you for this great tutorial! I would really like to reproduce this code for the country Kenya, but I have run into this error (which refers to line 161, the ggplot2 section). I tried lower the n class from 5 to 3, to safe memory (?), but this did not work. Any idea how to overcome this issue? Much appreciated!

Error in `geom_raster()` at Projects/ForestHeight/ForestHeight_Kenya.r:161:0:
! Problem while converting geom to grob.
ℹ Error occurred in the 1st layer.
Caused by error:
! vector memory exhausted (limit reached?)
Run `rlang::last_trace()` to see where the error occurred.
Warning messages:
1: In classInt::classIntervals(forest_height_kenya_df$height, n = 3,  :
  N is large, and some styles will run very slowly; sampling imposed
2: Raster pixels are placed at uneven horizontal intervals and will be shifted
ℹ Consider using `geom_tile()` instead. 
3: Raster pixels are placed at uneven horizontal intervals and will be shifted
ℹ Consider using `geom_tile()` instead. 
@MauKruisheer
Copy link
Author

Hey, I am still wondering if anyone has any ideas on how to overcome this. Very welcome, and much appreciated. Thanks, Maurits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant