S-PLUS Lecture 6 Jaeyong Lee. Graphical Parameters type = “c”: c =p (default), l, b,s,o,h,n. pch=“+” : character or numbers 1 – 18 lty=1 : numbers lwd=2.

Slides:



Advertisements
Similar presentations
Lecture (4) Plotting & Programming (1) Eng. Osama Talaat 1.
Advertisements

Matlab Graphics S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: 2D Graphics.
1 Computer Graphics Chapter 2 Input Devices. RM[2]-2 Input Devices Logical Input Devices  Categorized based on functional characteristics.  Each device.
Introduction to R for Absolute Beginners: Part II Melinda Fricke Department of Linguistics University of California, Berkeley
The Tab Button Tab Button Ruler TAB Left Tab Text aligns to the left from this tab.
Guided practice with ordered pairs
Coordinate Systems John Kirby.
Customizing Graphs Base graphics options. plot() The workhorse plotting function plot(x) plots values of x in sequence or a barplot plot(x, y) produces.
Scripts and Flow Control. Scripts So far we have been entering commands directly into the command line But there is a better way Script files (and functions)
Evan Girvetz Winkenwerder Introduction to Graphics in R © R Foundation, from
Graph these numbers. 1. Highlight the rows you need for your axes 2. Click on the chart wizard icon.
6601 Project---Graphics --Enhancing Plots --Fine Control of Graphics Xingyan Bai, Qian Zhang, Ying Li.
EGR106 Week 4 Two Dimensional Plots Multiple Plots Plot Formatting Homework.
Using Interactive Charting Gaussian Output, ADF Output, Vasprun.xml files.
Baburao Kamble (Ph.D) University of Nebraska-Lincoln Data Analysis Using R Week5: Charts/Plots in R.
R – a brief introduction Statistical physics – lecture 11 Szymon Stoma.
An Introduction to R graphics Elizabeth Garrett-Mayer Slides borrowed from Cody Chiuzan & Delia Voronca March 24, 2014.
Graphics in R. X
R Graphics Lori Shepherd-Kirchgraber May 22, 2012.
R-Graphics Day 2 Stephen Opiyo. Basic Graphs One of the main reasons data analysts turn to R is for its strong graphic capabilities. R generates publication-ready.
Creating Graphs in R Graphing techniques Sharon style! (I am not sure if this is a good or bad thing but this is what I do...)
David Streader Computer Science Victoria University of Wellington Copyright: David Streader, Victoria University of Wellington GUI and the UI API COMP.
David Streader Computer Science Victoria University of Wellington Copyright: David Streader, Victoria University of Wellington While loops and the UI API.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Statistical Software R. More data sets …. See
Using the ‘R’ Language for Bioinformatics
Graphing Parameters Titles X-Axis Title Y-Axis Title Legend Scales Color Gridlines library(help="graphics") Basic Chart Types The R Graphics Package LineHistogram.
An Introduction to R graphics Cody Chiuzan Division of Biostatistics and Epidemiology Computing for Research I, 2012.
S-PLUS Lecture 2 Jaeyong Lee Department of Statistics Pennsylvania State University.
Learn R Toolkit D Kelly O'DayBox, Dot, Histogram, Strip Charts Mod 5 –Box Charts: 1 Module 5 Box, Dot, Histogram, Strip Charts Do See & HearRead Learn.
1 DKT 211 Basic Communication Engineering LAB # 1A : (Lecture 1) Introduction to Matlab  Basic Features  Scientific features  Array Operations  Script.
R-Graphics Stephen Opiyo. Basic Graphs One of the main reasons data analysts turn to R is for its strong graphic capabilities. R generates publication-ready.
MATLAB 程式設計 Learning Arrays and x-y Plotting 方煒 台大生機系.
Written by: Itzik Ben Shabat Technion - Israel Institute of Technology Faculty of Mechanical Engineering Laboratory for CAD & Lifecycle Engineering Lab.
EGR 106 Lecture 6 2-D Plotting Graphical presentation has become the standard method to show technical information. Engineers use plots to analyze, visualize,
R (3) Introduction to Graphics. The main guide R in Action Data Analysis and Graphics with R Robert I. Kabacoff
Scientific Computing (w1) R Computing Workshops An Introduction to Scientific Computing workshop 1.
Plotting Complex Figures Using R
MS-Excel XP Lesson 7. Creating Charts 1.Excel for windows can produce 14 standard type and 20 custom types of graphs or charts, with many different format.
S-PLUS Lecture 4 Jaeyong Lee Pennsylvania State University.
Lattice- xyplot Yufeng Lin Haipeng Yao. How to use xyplot Xyplot(formula, data = parent.frame(), panel = if (is.null(groups)) "panel.xyplot" else "panel.superpose",
Introduction to Engineering MATLAB – 9 Plotting - 2 Agenda Formatting plots.
More Matlab Graphics and GUI Graphics subplots some useful commands 3D graphics GUI GUI controls The callback property Other essential properties.
Introduction to plotting data Fish 552: Lecture 4.
R 그래픽스 5 : R을 이용한 도형그리기 (1) 원(circle) 그리기
Structured Computer Programming EE 201 Introduction to MATLAB 7 for Engineers بسم الله الرحمن الرحيم King Abdulaziz University College of Engineering Dept.
Correlation coefficients and simple linear regression Chapter 7.1 ~ 7.6.
Review > mean(humidity, na.rm=T) > humidity[!is.na(humidity)] > X x Y Y[[1]][2,3] > zone.fac
Statistical Programming Using the R Language Lecture 2 Basic Concepts II Darren J. Fitzpatrick, Ph.D April 2016.
Review > plot(x=primates$Bodywt, y=primates$Brainwt, xlim=c(0,300), ylim=c(0,1400), cex=2, pch=21, col="black", bg="salmon", xlab = "Body weight (kg)",
THE MOUSE Left Click THE MOUSE Right Click.
Graph Rational Numbers on a Coordinate Plane…
Statistical Programming Using the R Language
Trevor A. Branch FISH 552 Introduction to R
Insert Presentation Title Here Insert Presentation Summary Here
First Name Last Name Title of session
Screen Title Screen text Page x of y Graphic: description
VBScript Session 6 Dani Vainstein.
Header Title Header Title Header Title Header Title Header Title
Click to place title Sub title
First Name Last Name Title of session
Screen Title Screen text Page x of y Graphic: description
Drawing Area Coordinate System
Plotting Signals in MATLAB
Please insert Title Please insert sub-title 1
Put the title here Here is the sub-title.
Put the title here Here is the sub-title.
Introduction to R plot Instructor: Li, Han
Timekeeper t OVER (Time lapse display Lecture Discussion
Presentation transcript:

S-PLUS Lecture 6 Jaeyong Lee

Graphical Parameters type = “c”: c =p (default), l, b,s,o,h,n. pch=“+” : character or numbers 1 – 18 lty=1 : numbers lwd=2 : numbers axes = “L”: L= F, T xlab =“string”, ylab=“string” sub = “string”, main =“string” xlim = c(lo,hi), ylim= c(lo,hi) And some more.

Session: Graphical Parameters x <- 1:10 y <- 2*x + rnorm(10,0,1) plot(x,y,type=“p”) #Try l,b,s,o,h,n # axes=T, F # xlab=“age”, ylab=“weight” # sub=“sub title”, main=“main title” # xlim=c(0,12), ylim=c(-1,12)

Interactive Graphics Functions locator(n,type=“p”) :Waits for the user to select locations on the current plot using the left mouse button. This continues until n (default 500) points have been selected. identify(x, y, labels) : Allow the user to highlight any of the points defined by x and y. text(x,y,”Hey”): Write text at coordinate x,y.

Session: Interactive Graphics x <- 1:10 y <- 2*x + rnorm(10,0,1) plot(x,y) text(2, 3.5, “Hey!”) locator(2, type=“p”, pch=“+”) identify(1:3, 4:6, letters[1:3]) text(locator(1), "Outlier", adj=0)

Session:Plots for Multivariate Data pairs(stack.x) x <- 1:20/20 y <- 1:20/20 z <- outer(x,y,function(a,b){cos(10*a*b)/(1+a*b^2)}) contour(x,y,z) persp(x,y,z) image(x,y,z)