Skip to content

Commit 2d9b56e

Browse files
PabRodFBartos
andauthored
Apply suggestions to parabolaPlot
Co-authored-by: František Bartoš <[email protected]>
1 parent a4603c8 commit 2d9b56e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/examples.R

+4-2
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ Parabola <- function(jaspResults, dataset, options) {
4040
ggplot2::xlim(-3, 3) +
4141
ggplot2::ylim(0, 10) +
4242
ggplot2::geom_function(fun = f)
43-
43+
# add jasp theme
44+
p <- jaspGraphs::geom_rangeframe() +
45+
jaspGraphs::themeJaspRaw()
4446
# Aesthetics
4547
parabolaPlot <- createJaspPlot(title = gettext("Parabola"),
4648
width = 160,
4749
height = 320)
4850
parabolaPlot$dependOn(c("a")) # Refresh view whenever a changes
49-
51+
parabolaPlot$info <- gettext("This figure displays a parabola specified via the `a` option.")
5052
jaspResults[["parabolaPlot"]] <- parabolaPlot
5153
parabolaPlot$plotObject <- p
5254

0 commit comments

Comments
 (0)