R/plot_RGB_group_by_color.R
plot_RGB_group_by_color.RdCreate 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
)stars object. with group number in each pixel usefull, NA in others pixels.
flot matrix. coordinates of each pixel, obtained with `PCA_or_tSNE_on_pro_pres_est` function.
character. optional, add country's border to plots , default is NULL.
sf object. optional, add border to plots, default is NULL.
boolean. Show plots, default is TRUE.
boolean. Save plots in plot folder as .png file, default is FALSE.