Description Usage Arguments Examples
Loss function
1 | loss(d1, d2)
|
d1 |
data frame |
d2 |
data frame |
1 2 3 4 5 6 7 8 9 | connect <- dbConnect(dbDriver("MySQL"), user="2009Expo",
password="R R0cks", port=3306, dbname="baseball",
host="headnode.stat.iastate.edu")
pitch <- new("dataDB", co=connect, table="Pitching")
d1 <- dbData(pitch, vars=c( "G", "SO"))
d2 <- dbData(pitch, vars=c( "G", "SO"), binwidth=c(2, 5))
qplot(G,SO, fill=log10(Freq), data=d2, geom="tile")+scale_fill_gradient2()
qplot(G,SO, fill=log10(Freq), data=d1, geom="tile")+scale_fill_gradient2()
loss(d1, d2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.