File:Cdf-ecdf.svg

Summary

Description
English: A graph of the cumulative distribution function (cdf, red) of the standard normal distribution and the empirical cumulative distribution function (ecdf, blue) of a sample of size 50 from the standard normal distribution.
Date
Source Own work
Author ARAKI Satoru
SVG development
InfoField
 
The SVG code is valid.
 
This vector image was created with an unknown SVG tool.
Category:Valid SVG created with Other tools#Cdf-ecdf.svg
library(ggplot2)
set.seed(123)
df <- data.frame(val=rnorm(50))
p <-
  ggplot(df, aes(x=val)) +
  stat_ecdf(geom="point", colour="#0072B2") +
  stat_ecdf(colour="#0072B2", size=1) +
  stat_function(fun=pnorm, colour="#D55E00", size=1) +
  labs(x="", y="")
svg(filename="cdf-ecdf.svg", width=6.16, height=4.71)
plot(p)
dev.off()

Licensing

ARAKI Satoru, the copyright holder of this work, hereby publishes it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
Attribution:
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-4.0#Cdf-ecdf.svg
Category:Self-published work Category:Ggplot2 Category:Probability Category:SVG line charts Category:Statistics
Category:CC-BY-SA-4.0 Category:Ggplot2 Category:Probability Category:SVG line charts Category:Self-published work Category:Statistics Category:Valid SVG created with Other tools