This is a file from the Wikimedia Commons

File:Datest Surfaceplot.JPG

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Datest_Surfaceplot.JPG(500 × 500 pixels, file size: 33 KB, MIME type: image/jpeg)


Summary

Description
English: This picture has been created with MD*Tech XploRe.


Program Code

Attention! For repeating the computation a transformed dataset is needed! If you have not yet computated and saved the transformation, run the program for transformation on the wikipage en:Analysis of Tuberculosis first!

The code can easily be adjusted manually to plot density estimates of other variables (choose i and j).


library("xplore")
library("stats")

; ----- Reading Data ---------------------------------------------------------------------------

choose = "Read data from:"

defaults = "C:\Dokumente und Einstellungen\All Users\Desktop\UN_data_ordered.csv"

v1 = readvalue(choose, defaults)

x = readcsvm(v1)

data = x.double
country = x.text

; ----- Calculating the 3-Dimensional Grid------------------------------------------------------

i = 6                                                      ; choose variables 6 and 11 for the
j = 11                                                     ; 2-dimensional density estimation

o = min(data[,i|j])   ; origin of the grid

l = max(data[,i|j]) - o                                    ; length of the gridsides

n = 30*#(1,1)   ; number of gridpoints

w = l'./n   ; stepwidth

gridx = grid (o', w, n)

; ----- Compute Density Estimator --------------------------------------------------------------

h = 5*#(1,1)   ; bandwith of kernel

d2 = sker (sort(data[,i|j]), h', "qua", matrix(rows(data)), sort(gridx))

; ----- Choose Settings for Density Estimation -------------------------------------------------

cl=grcolorscheme("color",15)
createcolor(cl)

gr = grsurfacecol(sort(gridx)~d2, cl, 15)

d = createdisplay(1,1)

show(d,1,1,gr)
setmask(gr, "line", "blue")
setgopt(d, 1, 1, "title", "Surfaceplot of 'Tuberculosis' and 'Sanitation'")

Date 30 March 2007 (original upload date)
Source Transferred from en.wikibooks to Commons.
Author Schtiwi at English Wikibooks

Licensing

Schtiwi at the English Wikipedia, the copyright holder of this work, hereby publishes it under the following license:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
Attribution: Schtiwi at the English Wikipedia
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.

Original upload log

The original description page was here. All following user names refer to en.wikibooks.
Date/Time Dimensions User Comment
2007-03-30 11:47 500×500× (33670 bytes) Schtiwi This picture has been created with MD*Tech XploRe.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

30 March 2007

image/jpeg

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current14:19, 19 August 2017Thumbnail for version as of 14:19, 19 August 2017500 × 500 (33 KB)JackPotte{{BotMoveToCommons|en.wikibooks|year={{subst:CURRENTYEAR}}|month={{subst:CURRENTMONTHNAME}}|day={{subst:CURRENTDAY}}}} == {{int:filedesc}} == {{Information |Description={{en|This picture has been created with MD*Tech XploRe. == Program Code == '''At...

The following page uses this file: