File:RugFunction.png

From 太極
Jump to navigation Jump to search

RugFunction.png(525 × 525 pixels, file size: 6 KB, MIME type: image/png)

See p129 & 132 of Modern Applied Statistics with S (4th ed).

The following example is taken from help(rug).

require(stats)  
with(faithful, {
    plot(density(eruptions, bw = 0.15))
    rug(eruptions)
    rug(jitter(eruptions, amount = 0.01), side = 3, col = "light blue")
})

File history

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

Date/TimeThumbnailDimensionsUserComment
current14:03, 12 January 2015Thumbnail for version as of 14:03, 12 January 2015525 × 525 (6 KB)Brb (talk | contribs)require(stats) # both 'density' and its default method with(faithful, { plot(density(eruptions, bw = 0.15)) rug(eruptions) rug(jitter(eruptions, amount = 0.01), side = 3, col = "light blue") })

There are no pages that use this file.