Displaying 1 result from an estimated 1 matches for "tofdf".
Did you mean:
tofd
2012 Oct 04
0
extract fit values from geom_smooth
Dear all,
I have a plot with two gaussian distributions:
ggplot( tofdf, aes( x = tof, y = counts ) ) +
geom_histogram( stat = "identity", position = "stack", fill = 2 ) +
geom_smooth( method = "nls", formula = y ~ (a/b)*exp(-(x-c)^2/(2*b^2)) +
(d/e)*exp(-(x-f)^2/(2*e^2)), se=F,
start=list(a=100, b=1, c=695, d=100, e...