# Easy web publishing from R

##
Write
R Markdown
documents in RStudio.

Share them here on RPubs.
(It’s free, and couldn’t be simpler!)

**Get Started**

## Recently Published

##### Cars MPG Application

Select car model to get its millage per gallon (MPG)

##### A R Function for Interval Estimation of the (Expected) Response Based on a Nonlinear Regression Model

This document describes the nlsint function which is an alternative to predict.nls. Unlike predict.nls it will also compute confidence intervals for the expected response as well as prediction intervals.

##### CarMPG

Select car model to get its millage per gallon (MPG)

##### density.pp

data(tabs)
coordinates(tabs) = ~lng1+lat1
zn1 <- as(tabs["average"], "ppp")
zn1
plot(zn1)
house.kde<-density(zn1, sigma=bw.diggle(zn1))
plot(house.kde)
contour(house.de)
co <- colourmap(rainbow(100), range=c(0,20))
contour(house.kde, col=co, nlevels=500,axes=TRUE)
Dsg <- as(house.kde, "SpatialGridDataFrame") # convert to spatial grid class
Dim <- as.image.SpatialGridDataFrame(Dsg) # convert again to an image
Dcl <- contourLines(Dim, nlevels = 500) # create contour object - change 8 for more/fewer levels!!!!!!!!!!
SLDF <- ContourLines2SLDF(Dcl, CRS(proj4string(Dsg))) # convert to SpatialLinesDataFrame
plot(SLDF, col = terrain.colors(500))

##### PeerAssessment2

Reproducible Research: Peer Assessment 2

##### Pyramid

To Calculate Volume and Surface Area of Pyramid