::Free Statistics and Forecasting Software::

v1.1.22-r6
 
  Black&White | Blue Theme | Normal Fontsize | Increase Fontsize | Decrease Fontsize | Toggle underline | Secure website (SSL)
 
 
This software module is powered by R

:: Trivariate Scatterplots - Free Statistics Software (Calculator) ::

All rights reserved. The non-commercial (academic) use of this software is free of charge. The only thing that is asked in return is to cite this software when results are used in publications.

This free online software (calculator) computes the following charts for a trivariate dataset: 3-dimensional scatterplots, all combinations of 2-by-2 scatterplots, histograms, bivariate density plots with the corresponding contour plots and regression line.

This software enables the user to visually explore the relationship between 3 variables. In addition it illustrates how 3-dimensional scatterplots are related to 2-dimensional scatterplot matrices and density plots.

Click here to edit the underlying code of this R Module.

Enter (or paste) your data delimited by hard returns.

Send output to:
Data X:
 
Data Y:
 
Data Z:
 
Sample Range:
(leave blank to include all observations)
From:
To:
gridsize on x-axis (?)
gridsize on y-axis (?)
plot contours 
plot points 
Name of dataset X 
Name of dataset Y 
Name of dataset Z 
Chart options
Width:
Height:

Click here to edit the underlying code of this R Module.






Cite this software as:
Wessa P., (2008), 3-Dimensional Scatterplots (v1.0.4) in Free Statistics Software (v1.1.22-r6), Office for Research Development and Education, URL http://www.wessa.net/rwasp_cloud.wasp/
The R code is based on :
Deepayan Sarkar (2006)., lattice: Lattice Graphics. R package, version 0.13-8.
David Lucy and Robert Aykroyd (2004)., GenKern: Functions for generating and manipulating kernel density estimates., R package version 1.1-0.

Source code of R module
1x <- array(x,dim=c(length(x),1))
2colnames(x) <- par5
3y <- array(y,dim=c(length(y),1))
4colnames(y) <- par6
5z <- array(z,dim=c(length(z),1))
6colnames(z) <- par7
7d <- data.frame(cbind(z,y,x))
8colnames(d) <- list(par7,par6,par5)
9par1 <- as.numeric(par1)
10par2 <- as.numeric(par2)
11if (par1>500) par1 <- 500
12if (par2>500) par2 <- 500
13if (par1<10) par1 <- 10
14if (par2<10) par2 <- 10
15library(GenKern)
16library(lattice)
17panel.hist <- function(x, ...)
18{
19usr <- par("usr"); on.exit(par(usr))
20par(usr = c(usr[1:2], 0, 1.5) )
21h <- hist(x, plot = FALSE)
22breaks <- h$breaks; nB <- length(breaks)
23y <- h$counts; y <- y/max(y)
24rect(breaks[-nB], 0, breaks[-1], y, col="black", ...)
25}
26bitmap(file="cloud1.png")
27cloud(z~x*y, screen = list(x=-45, y=45, z=35),xlab=par5,ylab=par6,zlab=par7)
28dev.off()
29bitmap(file="cloud2.png")
30cloud(z~x*y, screen = list(x=35, y=45, z=25),xlab=par5,ylab=par6,zlab=par7)
31dev.off()
32bitmap(file="cloud3.png")
33cloud(z~x*y, screen = list(x=35, y=-25, z=90),xlab=par5,ylab=par6,zlab=par7)
34dev.off()
35bitmap(file="pairs.png")
36pairs(d,diag.panel=panel.hist)
37dev.off()
38x <- as.vector(x)
39y <- as.vector(y)
40z <- as.vector(z)
41bitmap(file="bidensity1.png")
42op <- KernSur(x,y, xgridsize=par1, ygridsize=par2, correlation=cor(x,y), xbandwidth=dpik(x), ybandwidth=dpik(y))
43image(op$xords, op$yords, op$zden, col=terrain.colors(100), axes=TRUE,main="Bivariate Kernel Density Plot (x,y)",xlab=par5,ylab=par6)
44if (par3=="Y") contour(op$xords, op$yords, op$zden, add=TRUE)
45if (par4=="Y") points(x,y)
46(r<-lm(y ~ x))
47abline(r)
48box()
49dev.off()
50bitmap(file="bidensity2.png")
51op <- KernSur(y,z, xgridsize=par1, ygridsize=par2, correlation=cor(y,z), xbandwidth=dpik(y), ybandwidth=dpik(z))
52op
53image(op$xords, op$yords, op$zden, col=terrain.colors(100), axes=TRUE,main="Bivariate Kernel Density Plot (y,z)",xlab=par6,ylab=par7)
54if (par3=="Y") contour(op$xords, op$yords, op$zden, add=TRUE)
55if (par4=="Y") points(y,z)
56(r<-lm(z ~ y))
57abline(r)
58box()
59dev.off()
60bitmap(file="bidensity3.png")
61op <- KernSur(x,z, xgridsize=par1, ygridsize=par2, correlation=cor(x,z), xbandwidth=dpik(x), ybandwidth=dpik(z))
62op
63image(op$xords, op$yords, op$zden, col=terrain.colors(100), axes=TRUE,main="Bivariate Kernel Density Plot (x,z)",xlab=par5,ylab=par7)
64if (par3=="Y") contour(op$xords, op$yords, op$zden, add=TRUE)
65if (par4=="Y") points(x,z)
66(r<-lm(z ~ x))
67abline(r)
68box()
69dev.off()
Delete history
Server DateModuleCommand
Sat, 17 May 2008 14:38:41 -0600Start of session-

Please, send us your feedback!
Overall rating
What do you think about the response time?
Rate the facility with which you interact with our software.
Is the output presented in an understandable (clear) form?
How did you find this website/module?
Do you have any comments about our site?
Do you have any suggestions for our site?
Please enter the code that is displayed in this picture: captcha

To cite Wessa.net in publications use:
Wessa, P. (2008), Free Statistics Software, Office for Research Development and Education,
version 1.1.22-r6, URL http://www.wessa.net/

© Resa R&D, and the 'Office for Research, Development, and Education' - All rights reserved. Academic license for non-commercial use only.
This website is an intellectual and physical property of Resa R&D. This includes: html content, graphical illustrations (gif files), computer software, online or electronic documentation, associated media, and printed materials. The free use of the scientific content, services, and applications in this website is granted for non commercial use only. In any case, the source (url) should always be clearly displayed. Under no circumstances are you allowed to reproduce, copy or redistribute the design, layout, or any content of this website (for commercial use) including any materials contained herein without the express written permission of Resa R&D or the Office for Research, Development, and Education.

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, Resa R&D makes no warranties or representations as to the accuracy or completeness of such information (or software), and it assumes no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall Resa R&D be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.

Software Version : 1.1.22-r6
Algorithms & Software : Prof. dr. P. Wessa
Facilities : Resa R&D - Office for Research, Development, and Education
Server : www.wessa.net

Comments, Feedback & Errors | Privacy Policy | Statistics Resources | Wessa.net Home

 © Wessa.Net 2002-2008  
 
 

Home Page
Equation Plotter
Time Series Analysis (new)
Time Series Analysis (old)
Multiple Regression (new)
Multiple Regression (old)
Descriptive Statistics
Statistical Distributions
Hypothesis Testing

Academic citations
Computations Archive
Search Computations
FAQ
About Wessa.net
Powered by Linux

Server status page
History list
Edit R Code
Google
Web wessa.net