Open djhunter opened 2 years ago
And later
ggplot() +
geom_sf(data = st_as_sfc(st_bbox(HARV_CHM)), fill = "green",
color = "green", alpha = .2) +
geom_raster(data = HARV_CHM_Cropped_df,
aes(x = x, y = y, fill = HARV_chmCrop)) +
scale_fill_gradientn(name = "Canopy Height", colors = terrain.colors(10)) +
coord_sf()
should be:
ggplot() +
geom_sf(data = st_as_sfc(st_bbox(HARV_CHM)), fill = "green",
color = "green", alpha = .2) +
geom_raster(data = HARV_CHM_Cropped_df,
aes(x = x, y = y, fill = layer)) +
scale_fill_gradientn(name = "Canopy Height", colors = terrain.colors(10)) +
coord_sf()
and again
ggplot() +
geom_sf(data = st_as_sfc(st_bbox(HARV_CHM)), fill = "green",
color = "green", alpha = .2) +
geom_raster(data = HARV_CHM_Cropped_df,
aes(x = x, y = y, fill = HARV_chmCrop)) +
scale_fill_gradientn(name = "Canopy Height", colors = terrain.colors(10)) +
coord_sf()
should be
ggplot() +
geom_sf(data = st_as_sfc(st_bbox(HARV_CHM)), fill = "green",
color = "green", alpha = .2) +
geom_raster(data = HARV_CHM_Cropped_df,
aes(x = x, y = y, fill = layer)) +
scale_fill_gradientn(name = "Canopy Height", colors = terrain.colors(10)) +
coord_sf()
Should be: