Discrete value supplied to continuous→scale囲う 解決法「 X軸の値をfactor()で」
https://gyazo.com/3fc724fed1a877f5a3d7bf9b18887f76
(参考記事)Changing x-axis tick labels ggplot2 not working, making axis disappear, scale_x_discrete
x=x軸の変数→x=factor(x軸の変数)に変えるだけ
factorに変えたら記事
https://ja.stackoverflow.com/questions/39716/r-ggplotを使用した散布図の色-サイズ分けについて
連続値の場合はscale_x_continuousだが,連続値でない場合はscale_x_discreteを使うっぽい
https://knknkn.hatenablog.com/entry/2019/02/22/193313
http://motw.mods.jp/R/ggplot_scale_discrete.html
離散値軸の順番を変更する
エラー: Discrete value supplied to continuous scale
X軸(時系列情報)がcharacterだったのをas.numeric()で変換したら直った