See the R behind an analysis看分析背後的 R
Zero typing. jamovi shows the exact R it ran for any analysis.
不用打字。任何分析,jamovi 都會顯示它實際跑過的 R。
Syntax ModeBuilt in
- Run any analysis (e.g. ANOVA).跑任一分析(例如 ANOVA)。
- Top-right ⋮ menu → Syntax mode.右上 ⋮ 選單 → Syntax mode。
- Each result now shows its
jmv:: R call — copy it into Rj.
每個結果現在都會顯示對應的 jmv:: R 呼叫——複製到 Rj 就好。
This is the safest way to learn: the code is exactly what jamovi ran, so it can't be wrong.
這是最安全的學法:程式碼就是 jamovi 跑的那份,不會錯。
Run your own R in jamovi在 jamovi 裡跑你的 R
The Rj Editor runs R against your open dataset — no separate R install needed.
Rj Editor 用你開著的資料跑 R——不必另外裝 R。
Rj EditorFree module
- Open開啟
- Analyses ▸ R ▸ Rj ▸ Rj Editor
- Your data你的資料
data
- Run執行
- the ▶ / run button▶ / 執行鍵
# the open dataset is a data.frame called `data`
model <- aov(len ~ dose, data = data)
summary(model)
Rj Editor guideRj Editor 說明
Rj is a module for the desktop version of jamovi (not jamovi Cloud). It uses the R packages bundled with Rj (tidyverse, readr, haven, and more); "Rj Editor +" can write results back as columns.
Rj 是桌面版 jamovi 的模組(jamovi Cloud 沒有)。它用 Rj 隨附的 R 套件(tidyverse、readr、haven 等);「Rj Editor +」可把結果存回成欄位。
Learn R from scratch從頭學 R
Beginner-friendly, community-standard references.
適合初學者的社群標準教材。
Reference
- PsyTeachR
- course-based, psychology-focused課程式、以心理學為主
- R for Data Science
- the modern intro現代入門 · CC BY-NC-ND
- An Introduction to R
- official manual官方手冊
- Posit cheatsheets
- one-page summaries一頁式速查 · CC BY
Start with R for Data Science從 R for Data Science 開始
Also: PsyTeachR · An Introduction to R · Posit cheatsheets
另有:PsyTeachR · An Introduction to R · Posit cheatsheets
Write R with jamovi's functions用 jamovi 自家函式寫 R
The jmv package reproduces jamovi analyses in R, one function per analysis.
jmv 套件在 R 裡重現 jamovi 分析,一個分析一個函式。
jmv package
# same as Analyses ▸ ANOVA ▸ One-Way ANOVA
jmv::anovaOneW(data = data, deps = "len",
group = "dose", phMethod = "tukey")
Combining jamovi and R結合 jamovi 與 R
Tip: run the analysis in jamovi first, switch on Syntax Mode, and copy the jmv:: call it generated.
訣竅:先在 jamovi 跑分析、開啟 Syntax Mode,再複製產生的 jmv:: 呼叫。