Add option to remove regression line from scatter plot

Đang mở
#8 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
r
Lĩnh vực
data-visualization

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
)
Ngôn ngữ chính
R
Star
1
Fork
3
Merge trung bình
9 giờ 41 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SticsRPacks/CroPlotR

Tất cả issue của SticsRPacks/CroPlotR

Issue tương tự

Thêm issue về R

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.