how to scale point size by area

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

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

評価

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

調査の方向性

まず scale_size_area() の実装と、レポートで示されている geom_point のサイズマッピングのパスを読みます。値 20 と 40 を使って例を再現し、レンダリングされた点の寸法を調べ、得られた面積をドキュメントに記載された動作と比較します。面積のスケーリングが不正であるかを確認し、期待される比例した面積についてのカバレッジを追加または更新できれば完了です。

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

説明

Hi,

I have a case where I need to generate a scatter plot (via geom_point(aes(..., size="value")), where the areas (instead of the radii) of the points should scale by the given value.

For example, a point with the value of 40 should have area twice as a point with value of 20, not twice the radius. I tried setting it by playing with some parameters in scale_size and usingscale_size_area but could not get what I expected. Honestly, the name scale_size_area felt like I found what I was looking for, but did not work as I expected and scaled by the radius (verified via inspecting in the browser).

Is there a way or a workaround to do so or is there a possible implementation error in the scale_size_area()?

主要言語
Kotlin
スター
1.8k
フォーク
63
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

JetBrains/lets-plot のほかの issue

JetBrains/lets-plot の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

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

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