1 / 5

Descriptive Exploratory Data Analysis II

Descriptive Exploratory Data Analysis II. Jagdish S. Gangolly State University of New York at Albany. Data Manipulation:. Matrices: bind rows ( rbind ), bind columns ( cbind ) Arrays: rowMeans, colMeans, rowSums, colSums, rowVars, colVars,… apply(data, dim, function,…)

bruis
Download Presentation

Descriptive Exploratory Data Analysis II

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Descriptive Exploratory Data Analysis II Jagdish S. Gangolly State University of New York at Albany

  2. Data Manipulation: • Matrices: bind rows (rbind), bind columns (cbind) • Arrays: rowMeans, colMeans, rowSums, colSums, rowVars, colVars,… • apply(data, dim, function,…) • attach(framename):permits you to refer to variables without cumbersome notations. You can detach the frame when done. • function (x) {function definition}:To define your own functions • rm(comma-separated S-Plus objects):To remove objects

  3. S-Plus Graphics • motif( ) : To open a graphics window. Each time you invoke this, a new graphics window is opened. • dev.off() : Close the most recent graphics device opened. • graphics.off() : Close all graphics devices. • plot(comma-separated variables, plot character)

  4. Trellis Graphics I • A matrix of graphs Example: >par(mfrow=c(2,2)) # 2 X 2 matrix of figures >x <- 1:100/100:1 >plot(x) # plot cell (1,1) >plot(x, type=“l”) # plot cell (1,2) line >hist(x) # plot cell (2,1) histogram >boxplot(x) # plot cell (2,2) boxplot

  5. Trellis Graphics II Syntax: Dependent variable ~ explanatory variable |conditioning variable Data set Output: >trellis.device(motif) >dev.off() or >graphics.off()

More Related