I'm looking for advice on how to produce a scatterplot.
I have data describing two events, A & B, and the year in which each event occurred.
Unit of observation is US states.
In some states, both events A & B have occurred; in other states only one or the other event has occurred.
I want the plot space to reflect observations (i.e. states) where both events have occurred: X-axis is Event A/Year; Y-axis is Event B/Year.
I also want the plot space to be bisected by a line at a 45 degree angle.
The bisecting line would reflect event A and event B occurring in the same year.
Above the bisecting line are observations where event A occurred before event B;
below the bisecting line are observations where event B occurred before event A
Furthermore, at the edges of the plot space I want to create lines that plot observations where only one or the other event has occurred.
A line running along the top of the plot space (parallel to X-axis) would capture states where event B occurred, but not event A;
a line running along the right edge (parallel to Y-axis) of the plot space would reflect states where event A occurred but not event B.
I have attached a PDF mock-up of the graph I'm trying to create.
Thanks in advance for consideration.
I have data describing two events, A & B, and the year in which each event occurred.
Unit of observation is US states.
In some states, both events A & B have occurred; in other states only one or the other event has occurred.
I want the plot space to reflect observations (i.e. states) where both events have occurred: X-axis is Event A/Year; Y-axis is Event B/Year.
I also want the plot space to be bisected by a line at a 45 degree angle.
The bisecting line would reflect event A and event B occurring in the same year.
Above the bisecting line are observations where event A occurred before event B;
below the bisecting line are observations where event B occurred before event A
Furthermore, at the edges of the plot space I want to create lines that plot observations where only one or the other event has occurred.
A line running along the top of the plot space (parallel to X-axis) would capture states where event B occurred, but not event A;
a line running along the right edge (parallel to Y-axis) of the plot space would reflect states where event A occurred but not event B.
I have attached a PDF mock-up of the graph I'm trying to create.
Thanks in advance for consideration.
Comment