10.07.2015 Views

The np Package - NexTag Supports Open Source Initiatives

The np Package - NexTag Supports Open Source Initiatives

The np Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

40 <strong>np</strong>udensSys.sleep(5)contour(year.seq,gdp.seq,f,xlab="Year",ylab="GDP",main = "Density Contour Plot",col=topo.colors(100))# Sleep for 5 seconds so that we can examine the output...Sys.sleep(5)# Alternatively, you could use the <strong>np</strong>plot() command (-C will# interrupt on *NIX systems, will interrupt on MS Windows# systems).<strong>np</strong>plot(bws=bw)detach(Italy)# EXAMPLE 2 (INTERFACE=FORMULA): For this example, we load the old# faithful geyser data and compute the density and distribution# functions.library("datasets")data("faithful")attach(faithful)# Note - this may take a few minutes depending on the speed of your# computer...bw

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!