Add option to remove regression line from scatter plot

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
r

調査の方向性

Start by reading the plot() entry point and the scatter-plot code it calls; check for existing tests covering type = "scatter". Done means reg_line = FALSE omits the regression line while the default behavior still includes it; add or update tests for both cases.

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

説明

enhancement

Sometimes we don't want to communicate the regression line so we should be able to remove it from the plot with an argument.

E.g.:

library(CroPlotR)

workspace <- system.file(
    file.path("extdata", "stics_example_1"),
    package = "CroPlotR"
)

situations <- SticsRFiles::get_usms_list(
    file = file.path(workspace, "usms.xml")
)

sim <- SticsRFiles::get_sim(
    workspace = workspace,
    usms_file = file.path(workspace, "usms.xml")
)

obs <- SticsRFiles::get_obs(
    workspace = workspace,
    usm = situations,
    usms_file = file.path(workspace, "usms.xml")
)

plot(
    sim,
    obs = obs,
    type = "scatter",
    select_scat = "res",
    all_situations = FALSE
)

We should be able to do e.g.:

plot(
    sim,
    obs = obs,
    type = "scatter",
    select_scat = "res",
    all_situations = FALSE,
    reg_line = FALSE
)
主要言語
R
スター
1
フォーク
3
平均マージ
9時間 41分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

SticsRPacks/CroPlotR のほかの issue

SticsRPacks/CroPlotR の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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