-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
Great package! But I'm still having difficulty with missing values. I'm attaching some data on state polarization for the northeast. Everything's there except the 2014 value for MA. This messes up the plot. I'd like to have the 2008 point for MA go directly to 2014. But as it is, MA gets orphaned after 2008, and the point for 2017 (the end) is not connected to anything.
na.span should do the job but it doesn't.
This is the code I use:
rownames(sg)=sg$st; sg$st=NULL
colnames(sg)=str_c("Year.",colnames(sg))
slopegraph(sg, col.line='gray',col.lab = 'black', decimals=1,
xlabels=c('1996','2000','2004','2008','2014','2017'),
cex.lab = 1, cex.num=0.75)
