File:R-basic cars plot example.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 360 × 360 pixels. Other resolutions: 240 × 240 pixels | 480 × 480 pixels | 768 × 768 pixels | 1,024 × 1,024 pixels | 2,048 × 2,048 pixels.
Original file (SVG file, nominally 360 × 360 pixels, file size: 109 KB)
File information
Structured data
Captions
Summary
[edit]DescriptionR-basic cars plot example.svg |
English: A simple graph to illustrate basic plotting routines in R (plot, abline, lines, text, title) |
Date | |
Source | Own work |
Author | HYanWong |
using the following commands
svg("R-basic_cars_plot_example.svg", 4,4,8) plot(cars) abline(-17.6,3.9, col="red") #abline() adds a straight line to the plot: lines(lowess(cars), col="blue") #lines() adds a sequence of joined-up lines text(15, 34, "Smoothed (lowess) line", srt=30, col="blue") #text() adds text text(15, 45, "Straight line (slope 3.9, intercept -17.6)", srt=32, col="red") #(srt rotates) title("1920s car stopping distances (from the 'cars' dataset)") dev.off()
Licensing
[edit]Public domainPublic domainfalsefalse |
I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 16:11, 13 January 2009 | 360 × 360 (109 KB) | HYanWong (talk | contribs) | {{Information |Description={{en|1=A simple graph to illustrate basic plotting routines in R (plot, abline, lines, text, title)}} |Source=Own work by uploader |Author=HYanWong |Date=2009/01/13 |Permission= |other_versions= }} {{Created wi |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
Hidden categories: