1
根據Plotting CCDF of walking durations,我所產生的CCDF曲線圖是這樣的:如何繪製CCDF在R 2與Y軸表示概率
ccdf<-function(views,density=FALSE)
{
freq = table(views)
X = rev(as.numeric(names(freq)))
Y =cumsum(rev(as.list(freq)));
data.frame(x=X,count=Y)
}
library(ggplot2)
qplot(x,count,data=ccdf(views),log='xy')
在Y x值的軸=計數,但我想得到Y = P [X> = x],我該怎麼做?