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

Strange in plot #50

Closed
Cam-in opened this issue Oct 29, 2024 · 1 comment
Closed

Strange in plot #50

Cam-in opened this issue Oct 29, 2024 · 1 comment

Comments

@Cam-in
Copy link

Cam-in commented Oct 29, 2024

Hi! Previously plotting the block, the background of the raster was really nice. Now, is all in line
image

Previously
Nac con_SPATIAL_BLOCKS_with_random_fold_assigment

My code:
sb <- blockCV::cv_spatial(pts2, #ocurrence
column = species_name,
r = pred.brick, #raster spatial
k = 5,
size = range.size, #from autocorrelation
hexagon = FALSE,
selection = "random", # randomly grouping the folds
iteration = 100, # find evenly dispersed folds
biomod2 = TRUE, # creates a table format you can use in biomod
plot = TRUE)

Could you help me identifying how to improve the plot? ggplot2 is updated
Thanks

rvalavi added a commit that referenced this issue Oct 31, 2024
@rvalavi
Copy link
Owner

rvalavi commented Oct 31, 2024

Hi @Cam-in, thanks for reporting the issue! I’ve fixed it. Just reinstall the package from GitHub with:

remotes::install_github("rvalavi/blockCV", dependencies = TRUE)

You can now adjust the background image quality (resolution) with the max_pixels argument if needed.

Closing this issue now.

@rvalavi rvalavi closed this as completed Oct 31, 2024
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

2 participants