Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_cloud.wasp
Title produced by softwareTrivariate Scatterplots
Date of computationFri, 06 Sep 2013 09:17:32 -0400
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2013/Sep/06/t1378474184r7opihyrcrslqhn.htm/, Retrieved Sun, 28 Apr 2024 05:43:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=211392, Retrieved Sun, 28 Apr 2024 05:43:04 +0000
QR Codes:

Original text written by user:Data source: Many Eyes http://www-958.ibm.com/software/data/cognos/manyeyes/visualizations/scatterplot-of-obesity-beer-jiang-te
IsPrivate?No (this computation is public)
User-defined keywordsTrivariate Scatterplot Obesity Beer Wine USA
Estimated Impact188
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Trivariate Scatterplots] [Obesity rate vs B...] [2013-09-06 13:17:32] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
28.9
23.7
21.2
26.1
22.2
16.8
19.7
21.1
22.9
24.7
20.8
23
25.5
23.5
23.2
25.8
27
23.4
23.9
18.4
25.4
22.6
29.5
24.9
19.7
23.2
21.1
21.6
21.9
21.5
22.1
24.2
24.6
25.3
24.9
21.2
24.3
19
25.1
23.8
27.2
25.8
20.4
18.7
23.1
22.2
27.6
23.2
20.8
Dataseries Y:
30.6
32.4
36.4
27.6
26
33.4
23.2
35.4
33.8
29.5
30.4
31.3
28.3
34.4
30
36.8
37.1
31.2
26.1
27.8
29.3
31.3
35.1
33.4
41.5
36.6
44
43.4
24.1
37.8
23
30.2
41.7
33.5
27
30.6
29.6
28
37
39
30.2
37.4
19.5
31.4
29.3
27.9
31.3
38.2
36.4
Dataseries Z:
1.72
3.83
3.29
1.34
4.53
3.66
4.62
5.14
4.09
2.38
3.06
3.1
2
1.33
1.34
1.39
2.35
3.57
2.95
4.89
2.47
2.66
1.06
2.36
3.06
1.71
5.75
6.26
4.46
2.25
3.61
2.43
1.56
2.01
1.36
4.27
2.09
4.36
2.06
1.5
1.6
2.13
1.37
4.75
3.09
4.1
0.88
2.63
2




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time9 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 9 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ jenkins.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=211392&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]9 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ jenkins.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=211392&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=211392&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time9 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net



Parameters (Session):
par1 = 50 ; par2 = 50 ; par3 = Y ; par4 = Y ; par5 = Variable X - Obesity ; par6 = Variable Y - Beer ; par7 = Variable Z - Wine ;
Parameters (R input):
par1 = 50 ; par2 = 50 ; par3 = Y ; par4 = Y ; par5 = Variable X - Obesity ; par6 = Variable Y - Beer ; par7 = Variable Z - Wine ;
R code (references can be found in the software module):
par7 <- 'Variable Z'
par6 <- 'Variable Y'
par5 <- 'Variable X'
par4 <- 'Y'
par3 <- 'Y'
par2 <- '50'
par1 <- '50'
x <- array(x,dim=c(length(x),1))
colnames(x) <- par5
y <- array(y,dim=c(length(y),1))
colnames(y) <- par6
z <- array(z,dim=c(length(z),1))
colnames(z) <- par7
d <- data.frame(cbind(z,y,x))
colnames(d) <- list(par7,par6,par5)
par1 <- as.numeric(par1)
par2 <- as.numeric(par2)
if (par1>500) par1 <- 500
if (par2>500) par2 <- 500
if (par1<10) par1 <- 10
if (par2<10) par2 <- 10
library(GenKern)
library(lattice)
panel.hist <- function(x, ...)
{
usr <- par('usr'); on.exit(par(usr))
par(usr = c(usr[1:2], 0, 1.5) )
h <- hist(x, plot = FALSE)
breaks <- h$breaks; nB <- length(breaks)
y <- h$counts; y <- y/max(y)
rect(breaks[-nB], 0, breaks[-1], y, col='black', ...)
}
bitmap(file='cloud1.png')
cloud(z~x*y, screen = list(x=-45, y=45, z=35),xlab=par5,ylab=par6,zlab=par7)
dev.off()
bitmap(file='cloud2.png')
cloud(z~x*y, screen = list(x=35, y=45, z=25),xlab=par5,ylab=par6,zlab=par7)
dev.off()
bitmap(file='cloud3.png')
cloud(z~x*y, screen = list(x=35, y=-25, z=90),xlab=par5,ylab=par6,zlab=par7)
dev.off()
bitmap(file='pairs.png')
pairs(d,diag.panel=panel.hist)
dev.off()
x <- as.vector(x)
y <- as.vector(y)
z <- as.vector(z)
bitmap(file='bidensity1.png')
op <- KernSur(x,y, xgridsize=par1, ygridsize=par2, correlation=cor(x,y), xbandwidth=dpik(x), ybandwidth=dpik(y))
image(op$xords, op$yords, op$zden, col=terrain.colors(100), axes=TRUE,main='Bivariate Kernel Density Plot (x,y)',xlab=par5,ylab=par6)
if (par3=='Y') contour(op$xords, op$yords, op$zden, add=TRUE)
if (par4=='Y') points(x,y)
(r<-lm(y ~ x))
abline(r)
box()
dev.off()
bitmap(file='bidensity2.png')
op <- KernSur(y,z, xgridsize=par1, ygridsize=par2, correlation=cor(y,z), xbandwidth=dpik(y), ybandwidth=dpik(z))
op
image(op$xords, op$yords, op$zden, col=terrain.colors(100), axes=TRUE,main='Bivariate Kernel Density Plot (y,z)',xlab=par6,ylab=par7)
if (par3=='Y') contour(op$xords, op$yords, op$zden, add=TRUE)
if (par4=='Y') points(y,z)
(r<-lm(z ~ y))
abline(r)
box()
dev.off()
bitmap(file='bidensity3.png')
op <- KernSur(x,z, xgridsize=par1, ygridsize=par2, correlation=cor(x,z), xbandwidth=dpik(x), ybandwidth=dpik(z))
op
image(op$xords, op$yords, op$zden, col=terrain.colors(100), axes=TRUE,main='Bivariate Kernel Density Plot (x,z)',xlab=par5,ylab=par7)
if (par3=='Y') contour(op$xords, op$yords, op$zden, add=TRUE)
if (par4=='Y') points(x,z)
(r<-lm(z ~ x))
abline(r)
box()
dev.off()