File:Cdf-ecdf.svg

Uploaded by ARAKI Satoru
Upload date 2016-04-08T08:13:37Z
MIME type image/svg+xml
Dimensions 554 × 424 px
File size 41.5 KB

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 unspecified SVG tool.
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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

8 April 2016

image/svg+xml

29102212cafe600f197c41b3f77ec618d47fcdbe

42,507 byte

424 pixel

554 pixel

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