Glasgow friendship, wave 1, by smoking
Chapter 5, exercise.
The side panel needs about 900 pixels of width. On a phone or in a narrow window, open the page on its own.
What to try
Color is smoking at wave 1 (smoke1, three levels). Drag the most conspicuous girl to a new place, save the two CSV files and bring the layout back into Stata with nodexy(), importcoords() and edgeimport(). Which impression of the first picture survives the move, and which does not?
The Stata commands
. nwwebuse glasgow, nwclear
. set seed 42
. nwplot glasgow1, color(smoke1, colorpalette(gs12 orange cranberry)) ///
> label(_nwnode) generate(x y) interactive noopen ///
> fname(glasgow1_smoke_interactive.html)
Source
Data: an excerpt of the Teenage Friends and Lifestyle Study. See the data sets page.