Skip to content

Commit 746fa15

Browse files
committed
update test plots
1 parent d4905da commit 746fa15

File tree

76 files changed

+1234
-2442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1234
-2442
lines changed

R/commonDiscoverDistributions.R

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,6 @@
429429
.ldMLEResults <- function(mleContainer, variable, options, ready, distName){
430430
if(!ready) return()
431431
if(!is.null(mleContainer[['mleResults']])) return(mleContainer[['mleResults']]$object)
432-
433432
starts <- options$pars
434433
if(!is.null(options$fix.pars)){
435434
starts[names(options$fix.pars)] <- NULL
@@ -977,7 +976,6 @@
977976
}
978977

979978
.ldFillPlotPDF <- function(pdfPlot, options){
980-
981979
# basic density curve
982980
plot <- ggplot2::ggplot(data = data.frame(x = options[['range_x']]), ggplot2::aes(x = x)) +
983981
ggplot2::stat_function(fun = options[['pdfFun']], n = 101, args = options[['pars']], size = 1.25)
@@ -1114,7 +1112,6 @@
11141112
}
11151113

11161114
.ldFillPlotCDF <- function(cdfPlot, options){
1117-
11181115
plot <- ggplot2::ggplot(data = data.frame(x = options[['range_x']]), ggplot2::aes(x = x)) +
11191116
ggplot2::stat_function(fun = options[['cdfFun']], n = 101, args = options[['pars']], size = 1.25)
11201117

@@ -1161,7 +1158,7 @@
11611158

11621159
plot <- plot +
11631160
ggplot2::geom_abline(data = line_data, ggplot2::aes(slope = slope, intercept = intercept, col = col), size = 1) +
1164-
jaspGraphs::geom_point (data = point_data, ggplot2::aes(x = x, y = y, col = col), size = 5) +
1161+
ggplot2::geom_point (data = point_data, ggplot2::aes(x = x, y = y, col = col), size = 5, shape = 21, fill = "grey", stroke=0.5) +
11651162
jaspGraphs::scale_JASPcolor_discrete(name = gettext("Slope"), labels = as.character(slopeText))
11661163
}
11671164

@@ -1347,7 +1344,7 @@
13471344
plot <- plot +
13481345
ggplot2::geom_bar(ggplot2::aes(x = xend, y = y), stat = "identity",
13491346
data = segment_data,
1350-
alpha = 0, colour = "black", size = 1.5, width = 0.8) +
1347+
alpha = 0, colour = "black", linewidth = 1.5, width = 0.8) +
13511348
ggplot2::geom_segment(data = segment_data,
13521349
mapping = ggplot2::aes(x = xseg, xend = xend, y = y, yend = y),
13531350
linetype = 2) +
@@ -1478,7 +1475,7 @@
14781475
plot <- plot +
14791476
ggplot2::geom_bar(ggplot2::aes(x = xend, y = y), stat = "identity",
14801477
data = segment_data,
1481-
alpha = 0, colour = "black", size = 1.5, width = 0.8) +
1478+
alpha = 0, colour = "black", linewidth = 1.5, width = 0.8) +
14821479
ggplot2::geom_segment(data = segment_data,
14831480
mapping = ggplot2::aes(x = xseg, xend = xend, y = y, yend = y),
14841481
linetype = 2) +

tests/testthat/_snaps/ldTSkew/cumulative-probability-plot.svg

Lines changed: 2 additions & 2 deletions
Loading

tests/testthat/_snaps/ldTSkew/histogram-vs-theoretical-pdf.svg

Lines changed: 28 additions & 28 deletions
Loading

tests/testthat/_snaps/ldTSkewedGeneralized/cumulative-probability-plot.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)