Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions R/examples.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ parabola <- function(jaspResults, dataset, options) {
ggplot2::ylim(0, 10) +
ggplot2::geom_function(fun = f)
# add jasp theme
p <- jaspGraphs::geom_rangeframe() +
jaspGraphs::themeJaspRaw()
p <- p + jaspGraphs::geom_rangeframe() +
jaspGraphs::themeJaspRaw()
# Aesthetics
parabolaPlot <- createJaspPlot(title = gettext("Parabola"),
width = 160,
width = 320,
height = 320)
parabolaPlot$dependOn(c("a")) # Refresh view whenever a changes
parabolaPlot$info <- gettext("This figure displays a parabola specified via the `a` option.")
parabolaPlot$info <- gettext("This figure displays a parabola specified via the `a` option.")
jaspResults[["parabolaPlot"]] <- parabolaPlot
parabolaPlot$plotObject <- p

Expand Down
Loading