Alignment of ggtitle
オープン
まだ誰も着手していません。
bug
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
First off, thank you for an incredible set of packages!
I'm facing an issue where the ggplot2 title aesthetics are not translated through ggplotyl(); more precisely, the horizontal title adjustment theme(plot.title = element_text(hjust = 0)) is ignored.
Code below:
library(ggthemes)
library(plotly)
set.seed(12345)
v <- runif(100, min=0, max=100)
df <- as.data.frame(v)
names(df) <- c("pressure")
t <- ggplot(df, aes(x = pressure)) +
geom_histogram(bins = 20, alpha = 0.7, position = "identity") +
scale_fill_fivethirtyeight(label = comma) +
theme_tufte(base_size = 7, base_family = "Avenir") +
labs(x = "pressure", "# observations", title = "pressure plot") +
theme(plot.title = element_text(hjust = 0)) +
theme(axis.ticks = element_blank()) +
scale_x_continuous()
(gg <- ggplotly(t))
Is there another way to define the location of text elements? Thanks!
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提供された R の例を実行し、結果の ggplotly タイトルの配置を ggplot2 のテーマ設定と比較して確認します。次に、タイトルの水平方向の調整がどのように変換されるかを追跡し、レンダリングされたタイトルが他のタイトルの配置を損なうことなく hjust = 0 を尊重することを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100