Here's a data frame of state polarization by 4 year intervals. When I enter the following interactively, I get the slopegraph in the Rstudio plot window.
BTW, the slopegraph doesn't work unless I omit NAs but this isn't quite what I want as I lose the entire set of observations if a state has any missing values. (see also #3)
The big question though is why I get a strange error when I set up the pdf:
The error I get from just adding the pdf command at the top is:
Error in `row.names<-.data.frame`(`*tmp*`, value = value) :
duplicate 'row.names' are not allowed
In addition: Warning message:
non-unique value when setting 'row.names': ‘0.4’
I don't understand why row names would be set at one of the values? It should be state abbreviations!
Bug report via email:
Here's a data frame of state polarization by 4 year intervals. When I enter the following interactively, I get the slopegraph in the Rstudio plot window.
BTW, the slopegraph doesn't work unless I omit
NA
s but this isn't quite what I want as I lose the entire set of observations if a state has any missing values. (see also #3)The big question though is why I get a strange error when I set up the pdf:
The error I get from just adding the pdf command at the top is:
I don't understand why row names would be set at one of the values? It should be state abbreviations!