Create plots with coordinates from dimensional reduction algorithm and plot pixel group with multiple colors. Plot can be hide and/or save.

plot_RGB_group_by_color(
  stars_pixels_group,
  coord_pixel,
  country_name = NULL,
  country_sf = NULL,
  display_plot = TRUE,
  save_plot = FALSE
)

Arguments

stars_pixels_group

stars object. with group number in each pixel usefull, NA in others pixels.

coord_pixel

flot matrix. coordinates of each pixel, obtained with `PCA_or_tSNE_on_pro_pres_est` function.

country_name

character. optional, add country's border to plots , default is NULL.

country_sf

sf object. optional, add border to plots, default is NULL.

display_plot

boolean. Show plots, default is TRUE.

save_plot

boolean. Save plots in plot folder as .png file, default is FALSE.