Zooming in on graphics Armin Gemperli, BIOP AG, Basel, Switzerland - - PowerPoint PPT Presentation

zooming in on graphics
SMART_READER_LITE
LIVE PREVIEW

Zooming in on graphics Armin Gemperli, BIOP AG, Basel, Switzerland - - PowerPoint PPT Presentation

Zooming in on graphics Armin Gemperli, BIOP AG, Basel, Switzerland Slide 1 Zooming in on graphics Problem Description How to chose the axis range for multiple plots on same data Slide 2 Zooming in on graphics Restricting vertical axis


slide-1
SLIDE 1

Slide 1

Zooming in on graphics

Armin Gemperli, BIOP AG, Basel, Switzerland

slide-2
SLIDE 2

Slide 2

Zooming in on graphics

  • How to chose the axis range for multiple

plots on same data

Problem Description

slide-3
SLIDE 3

Slide 3

Zooming in on graphics

  • rder=(0 to 6 by 1)

NOTE: 56 observation(s) outside the axis range for the y * x request. WARNING: Values exist outside the axis range, but only values within the displayed range took part in interpolation calculations for the PLOT statement.

Proc GPLOT with axis statement Interpol=box

Restricting vertical axis

slide-4
SLIDE 4

Slide 4

Zooming in on graphics

mode=exclude (Default) Data not seen does not contribute to the calculation mode=include All data contributes

  • rder=(0 to 6 by 1)

mode=include Proc GPLOT with axis statement Interpol=box

NOTE: 56 observation(s) outside the axis range for the y * x request.

Restricting vertical axis

slide-5
SLIDE 5

Slide 5

Zooming in on graphics

Interpol=join No warning Note No warning Note mode=include mode=exclude

Proc Gplot & Interpol option

slide-6
SLIDE 6

Slide 6

Zooming in on graphics

Interpol=step No warning Note Warning Note mode=include mode=exclude Same for Interpol=HILO, STD, L, SM, SPLINE, R

  • r with BUBBLE statement

Proc Gplot & Interpol option

slide-7
SLIDE 7

Slide 7

Zooming in on graphics

Interpol=needle No warning Note No warning Note mode=include mode=exclude

Proc Gplot & Interpol option

slide-8
SLIDE 8

Slide 8

Zooming in on graphics

Interpol=map/plot-pattern No warning Note Warning Note mode=include mode=exclude

Proc Gplot & Interpol option

slide-9
SLIDE 9

Slide 9

Zooming in on graphics

Clipfactor=factor factor>1.

Proc Boxplot & clipfactor

The upper limit is: Q1+R×factor The lower limit is: Q3–R×factor R=Q3-Q1 is the interquartile range and Q1 and Q3 the mean of lower and upper quartiles across all groups.

Clipfactor=2 Clipfactor=1.4

slide-10
SLIDE 10

Slide 10

Zooming in on graphics

Clipfactor=1.4

Proc Boxplot & clipfactor

Output via GOPTIONS vs. ODS Output

GOPTIONS output ODS output

slide-11
SLIDE 11

Slide 11

Zooming in on graphics

Boxplot: proc sgplot; vbox y / category=x; yaxis max=7; /* same with values=(0 to 7) */ run;

Proc Sgplot

slide-12
SLIDE 12

Slide 12

Zooming in on graphics

Example: Clipping extremes

symbol1 i=box v=dot mode=include; symbol2 i=none v=triangle; axis1 order=(0 to &cutpnt by 10); proc gplot; plot y*x=mark / vaxis=axis1; run; quit;

slide-13
SLIDE 13

Slide 13

Zooming in on graphics

Quartile definitions

Procedure Option . SGPLOT PERCENTILE BOXPLOT PERCENTILE UNIVARIATE PCTLDEF SUMMARY/MEANS QNTLDEF / QMETHOD GPLOT ? Upper Quartile for two toy dataset Dataset Percentile definition 1 2 3 4 5 1,2,3,4 3 3 3 3.75 3.5 1,2,3,4, 5,6 4.5 4 5 5.25 5

slide-14
SLIDE 14

Slide 14

Zooming in on graphics

Questions / Comments Thank you for your interest