Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在、stat_ecdf を使用して累積頻度グラフをプロットしています。
これが私が使用したコードです
cumu_plot <- ggplot(house_total_year, aes(download_speed, colour = ISP)) + stat_ecdf(size=1)
ただし、ecdf を逆にしたい (補完的な ecdf)。これを行う最も簡単な方法のアイデアはありますか?
乾杯!
stat_ecdf のヘルプ ページから:
計算変数 バツ データ内の x y 累積密度対応 x
計算変数
バツ
データ内の x
y
累積密度対応 x
したがって、これは機能します:
p <- ggplot(dataframe_with_column_Z, aes(x=Z)) p + geom_line(aes(y = 1 - ..y..), stat='ecdf')