[education/rkward] rkward: added Two plots (in row)
Stefan Rödiger
null at kde.org
Thu Jul 7 07:01:27 BST 2022
Git commit 45093db291902f70b747b187fe1b7247424b3f87 by Stefan Rödiger.
Committed on 07/07/2022 at 05:59.
Pushed by srodiger into branch 'master'.
added Two plots (in row)
M +15 -0 rkward/RKWardR.xml
https://invent.kde.org/education/rkward/commit/45093db291902f70b747b187fe1b7247424b3f87
diff --git a/rkward/RKWardR.xml b/rkward/RKWardR.xml
index b15495ce..efb01316 100644
--- a/rkward/RKWardR.xml
+++ b/rkward/RKWardR.xml
@@ -127,4 +127,19 @@ if (condition) {
<match>Combine Values into a Vector or List</match>
<fillin>${rangeCommand("c(%%1, recursive = FALSE, use.names = TRUE)", "Objects to be concatenated")}</fillin>
</item>
+ <item>
+ <match>Two plots (in row)</match>
+ <fillin># Two plots in a row
+# style of axis labels changed
+par(mfrow=c(1,2), las = 1)
+
+# First plot (stripchart)
+stripchart(rnorm(10), method = "jitter", main = "Stripchart")
+mtext("A", cex = 1.2, side = 3, adj = 0, font = 2)
+
+# Second plot (Histogram)
+hist(rnorm(10), main = "Histogram")
+mtext("B", cex = 1.2, side = 3, adj = 0, font = 2)
+</fillin>
+ </item>
</snippets>
More information about the rkward-tracker
mailing list