plotly / plotly/plotly.R

Problem with date in x-axe with gtrends and plotly

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

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

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

説明

I have a problem with plotly. I have write a brief code to show you my problem. The x-axe is not the same with ggplot and ggplotly. GGplot is the write x-axe. Can you help me?

trends <- gtrends("Hotel",time=paste(today()-years(1),today()))
time_trends <- trends$interest_over_time
plot <- ggplot(data=time_trends,aes(x=date,y=hits,group=keyword,col=keyword)) + geom_line()+xlab('Time')+ylab('Relative Interest')+ theme_bw()+
theme(legend.title = element_blank(),legend.position="bottom",legend.text=element_text(size=12))#+ggtitle("Google Search Volume")
plot
ggplotly(plot)

Thank you

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

リポジトリのファイルやテストは指定されていません。まず、提供された R の例を gtrends、ggplot、ggplotly で実行し、次に日付軸を比較して、具体的な不一致を記録してください。インタラクティブプロットが期待される ggplot の日付軸を保持すれば完了です。

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

評価

技術スタック
r
領域
data-visualization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

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

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