![](/img/trans.png)
[英]How to Plot an exponential distribution of spike times over a histogram of them, in R?
[英]How to plot an exponential distribution
setwd("J:/R projects/phoenixhsl/R scripts")
library(ggplot2)
ggplot(data.frame(x=c(0,7)),aes(x=x))+stat_function(fun=dexp,geom = "line",size=2,col="orange",args = (mean=0.5))
ggplot(data.frame(x=c(0,7)),aes(x=x))+stat_function(fun=dexp,geom = "line",size=2,col="purple",args = (mean=1))
ggplot(data.frame(x=c(0,7)),aes(x=x))+stat_function(fun=dexp,geom = "line",size=2,col="blue",args = (mean=1.5))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.