File:CDF of Pareto Distribution.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 360 × 360 pixels, file size: 36 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Designed to be an SVG replacement for Pareto distributionCDF.png. Generated in R and made somewhat more minimal than the original but have titled axes
Source Code
pal <- c("black","tomato", "royalblue", "darkgreen")
svg("ppareto.svg", 4, 4, family="Myriad Pro")
par0 <- par(mar=c(4,4,0,0)+0.5)
plot.new(); plot.window(c(0,5), c(0,1))
lines(c(-1e6,1,1,1e6), c(0,0,1,0), col=pal[[1]]) # hack to make Infinity visible
curve(VGAM::ppareto(x, 1, 3), 1, 6, add=T, n=201, col=pal[[2]])
curve(VGAM::ppareto(x, 1, 2), 1, 6, add=T, n=201, col=pal[[3]])
curve(VGAM::ppareto(x, 1, 1), 1, 6, add=T, n=201, col=pal[[4]])
axis(1); axis(2); box(bty="l")
title(xlab="x", ylab=expression(Pr(paste(X," \u2264 ",x)))) # work around bug in R by using unicode character directly
legend("bottomright", expression(kappa==infinity,kappa==3,kappa==2,kappa==1), lty=1, col=pal, bty="n", inset=0.1)
par(par0)
dev.off()
Date
Source Own work
Author Sam Mason

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:36, 29 September 2012Thumbnail for version as of 21:36, 29 September 2012360 × 360 (36 KB)Smason79 (talk | contribs)Figured out how to coerce R into displaying a less than or equal to symbol!
21:17, 29 September 2012Thumbnail for version as of 21:17, 29 September 2012360 × 360 (36 KB)Smason79 (talk | contribs)User created page with UploadWizard

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata