![](https://y2pt.com/wp-content/uploads/2024/05/image-12.png)
JupyterLab で R を使う方法
Anaconda Powershell Prompt に以下の入力
conda install r-base r-irkernel -y
![](https://y2pt.com/wp-content/uploads/2023/11/image-81.png)
Anacondaを立ち上げます
JupyterLabをLaunch
![](https://y2pt.com/wp-content/uploads/2023/11/image-82.png)
これで Python に加えて R も使えます
![](https://y2pt.com/wp-content/uploads/2023/11/image-90.png)
NotebookのRをクリック
![](https://y2pt.com/wp-content/uploads/2023/11/image-91.png)
Rになってますね!
少しやってみましょう
2,3,5,8,12の95%信頼区間を出力させます
![](https://y2pt.com/wp-content/uploads/2023/11/image-87.png)
問題なく動きますね
次にファイルを読み込んでみましょう(ファイルの読み込み)
![](https://y2pt.com/wp-content/uploads/2023/11/image-88.png)
もちろん作図も
![](https://y2pt.com/wp-content/uploads/2023/11/image-89.png)
イメージはこんな感じです
![](https://y2pt.com/wp-content/uploads/2023/12/image-2.png)
GitHub - yoshida932/ttest_plot: 「JupyterLabでRを使う方法」のイメージ
...
コメント欄 『間違い』や『分かりにくい部分』などのご意見もお寄せください