11.07.2015 Views

Preface to First Edition - lib

Preface to First Edition - lib

Preface to First Edition - lib

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

32 DATA ANALYSIS USING GRAPHICAL DISPLAYSR> dyes dno plot(dyes, lty = 1, xlim = xr, main = "", ylim = c(0, 0.018))R> lines(dno, lty = 2)R> legend("<strong>to</strong>pleft", lty = 1:2, legend = c("Coastal State",+ "Land State"), bty = "n")Coastal StateLand StateDensity0.000 0.005 0.010 0.015100 150 200 250N = 22 Bandwidth = 16.22Figure 2.3Estimated densities of malignant melanoma mortality rates by contiguity<strong>to</strong> an ocean.Now we might move on <strong>to</strong> look at how mortality rates are related <strong>to</strong> thegeographic location of a state as represented by the latitude and longitudeof the centre of the state. Here the main graphic will be the scatterplot. Thesimple xy scatterplot has been in use since at least the eighteenth century andhas many virtues – indeed according <strong>to</strong> Tufte (1983):The relational graphic – in its barest form the scatterplot and its variants – isthe greatest of all graphical designs. It links at least two variables, encouragingand even imploring the viewer <strong>to</strong> assess the possible causal relationship betweenthe plotted variables. It confronts causal theories that x causes y with empiricalevidence as <strong>to</strong> the actual relationship between x and y.Let’s begin with simple scatterplots of mortality rate against longitude andmortality rate against latitude which can be produced by the code precedingFigure 2.4. Again, the layout function is used for partitioning the plottingdevice, now resulting in two side by-side-plots. The argument <strong>to</strong> layout is© 2010 by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!