Skip to content

Commit db14f27

Browse files
committed
add shape paramter to mcmc_scatter
1 parent 68ceb49 commit db14f27

File tree

5 files changed

+8760
-8757
lines changed

5 files changed

+8760
-8757
lines changed

R/mcmc-scatterplots.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ mcmc_scatter <- function(x,
129129
regex_pars = character(),
130130
transformations = list(),
131131
...,
132+
shape = 21,
132133
size = 2.5,
133134
alpha = 0.8,
134135
np = NULL,
@@ -139,6 +140,7 @@ mcmc_scatter <- function(x,
139140
pars = pars,
140141
regex_pars = regex_pars,
141142
transformations = transformations,
143+
shape = shape,
142144
size = size,
143145
alpha = alpha,
144146
hex = FALSE,
@@ -641,6 +643,7 @@ pairs_condition <- function(chains = NULL, draws = NULL, nuts = NULL) {
641643
regex_pars = character(),
642644
transformations = list(),
643645
hex = FALSE,
646+
shape = 21,
644647
size = 2.5,
645648
alpha = 0.8,
646649
bins = 30,
@@ -684,7 +687,7 @@ pairs_condition <- function(chains = NULL, draws = NULL, nuts = NULL) {
684687
if (!hex) { # scatterplot
685688
graph <- graph +
686689
geom_point(
687-
shape = 21,
690+
shape = shape,
688691
color = get_color("dh"),
689692
fill = get_color("d"),
690693
size = size,

0 commit comments

Comments
 (0)