@@ -526,6 +526,8 @@ plot.raster_cube <- function(x, ...,
526
526
# ' @param rev Reverse the color order in the palette?
527
527
# ' @param scale Scale to plot map (0.4 to 1.5)
528
528
# ' @param style Style for plotting continuous objects
529
+ # ' @param first_quantile First quantile for stretching images
530
+ # ' @param last_quantile Last quantile for stretching images
529
531
# ' @param max_cog_size Maximum size of COG overviews (lines or columns)
530
532
# ' @return A plot object with an RGB image
531
533
# ' or a B/W image on a color
@@ -534,8 +536,6 @@ plot.raster_cube <- function(x, ...,
534
536
# ' @note The following optional parameters are available to allow for detailed
535
537
# ' control over the plot output:
536
538
# ' \itemize{
537
- # ' \item \code{first_quantile}: 1st quantile for stretching images (default = 0.05)
538
- # ' \item \code{last_quantile}: last quantile for stretching images (default = 0.95)
539
539
# ' \item \code{graticules_labels_size}: size of coordinates labels (default = 0.8)
540
540
# ' \item \code{legend_title_size}: relative size of legend title (default = 1.0)
541
541
# ' \item \code{legend_text_size}: relative size of legend text (default = 1.0)
@@ -573,11 +573,13 @@ plot.vector_cube <- function(x, ...,
573
573
tile = x [[" tile" ]][[1 ]],
574
574
dates = NULL ,
575
575
seg_color = " black" ,
576
- line_width = 0.3 ,
576
+ line_width = 0.2 ,
577
577
palette = " RdYlGn" ,
578
578
rev = FALSE ,
579
- scale = 1.0 ,
580
- style = " order" ,
579
+ scale = 0.8 ,
580
+ style = " cont" ,
581
+ first_quantile = 0.02 ,
582
+ last_quantile = 0.98 ,
581
583
max_cog_size = 1024 ) {
582
584
.check_set_caller(" .plot_vector_cube" )
583
585
# retrieve dots
@@ -630,6 +632,8 @@ plot.vector_cube <- function(x, ...,
630
632
rev = rev ,
631
633
scale = scale ,
632
634
style = style ,
635
+ first_quantile = first_quantile ,
636
+ last_quantile = last_quantile ,
633
637
max_cog_size = max_cog_size ,
634
638
tmap_params = tmap_params
635
639
)
@@ -898,6 +902,9 @@ plot.variance_cube <- function(x, ...,
898
902
# ' @param palette An RColorBrewer palette
899
903
# ' @param rev Reverse the color order in the palette?
900
904
# ' @param scale Scale to plot map (0.4 to 1.0)
905
+ # ' @param style Style for plotting continuous objects
906
+ # ' @param first_quantile First quantile for stretching images
907
+ # ' @param last_quantile Last quantile for stretching images
901
908
# ' @param max_cog_size Maximum size of COG overviews (lines or columns)
902
909
903
910
# '
@@ -907,8 +914,6 @@ plot.variance_cube <- function(x, ...,
907
914
# ' @note The following optional parameters are available to allow for detailed
908
915
# ' control over the plot output:
909
916
# ' \itemize{
910
- # ' \item \code{first_quantile}: 1st quantile for stretching images (default = 0.05)
911
- # ' \item \code{last_quantile}: last quantile for stretching images (default = 0.95)
912
917
# ' \item \code{graticules_labels_size}: size of coordinates labels (default = 0.8)
913
918
# ' \item \code{legend_title_size}: relative size of legend title (default = 1.0)
914
919
# ' \item \code{legend_text_size}: relative size of legend text (default = 1.0)
@@ -944,7 +949,10 @@ plot.uncertainty_cube <- function(x, ...,
944
949
tile = x [[" tile" ]][[1 ]],
945
950
palette = " RdYlGn" ,
946
951
rev = TRUE ,
947
- scale = 1.0 ,
952
+ scale = 0.8 ,
953
+ style = " cont" ,
954
+ first_quantile = 0.02 ,
955
+ last_quantile = 0.98 ,
948
956
max_cog_size = 1024 ) {
949
957
.check_set_caller(" .plot_uncertainty_cube" )
950
958
# get tmap params from dots
@@ -976,7 +984,9 @@ plot.uncertainty_cube <- function(x, ...,
976
984
main_title = main_title ,
977
985
rev = rev ,
978
986
scale = scale ,
979
- style = " order" ,
987
+ style = style ,
988
+ first_quantile = first_quantile ,
989
+ last_quantile = last_quantile ,
980
990
max_cog_size = max_cog_size ,
981
991
tmap_params = tmap_params
982
992
)
0 commit comments