how to save plot with `file` para with a `tpar` multiplot

オープン
#426 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
r

調査の方向性

提供された R スクリプトを、tpar(mfrow=c(2,1))、2 回の tinyplot 呼び出し、および file 引数を使って再現する。tinyplot のファイル処理のエントリーポイントから開始し、それが tpar レイアウトとどのように相互作用するかを特定する。2 パネルのプロットが要求された 1 つの画像として保存されるか、サポートされている制限が明確に文書化されれば完了とする。

索引モデルが issue の本文から書いたものです。

説明

# plot layout
tpar(mfrow=c(2,1))

tinyplot(X_new, mean_coverage_rate, 
         xlab="local test point", ylab="coverage rate",
         ylim=c(0, 1.0),
         col="forestgreen",
         draw=abline(h=1-alpha, col="orangered", lwd=1.2),
         main="Local coverage with kernel estimation", sub="estimator")


tinyplot(X_new, beta_hat*X_new, 
         xlab="local test point", ylab="prediction interval",
         col="forestgreen", 
         sub="Coverage in one trial",
         draw={
           segments(x0=X_new, y0=beta_hat*X_new-half_interval[, 1],
                    x1=X_new, y1=beta_hat*X_new+half_interval[, 1],
                    lwd=2, col="forestgreen")
           points(X_new, X_new+rnorm(40, sd=0.1), pch=17, col="gold1")
         },
        file="/Users/desktop/a.jpg"
         )

hi, I'm wondering how to save plot with file para with such a tpar layout above, it seems that tinyplot always save a png for the 2nd plot seperately...

主要言語
R
スター
430
フォーク
24
平均マージ
14時間 17分
マージ済み PR(30日)
8

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

grantmcdermott/tinyplot のほかの issue

grantmcdermott/tinyplot の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。