You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create an ssplot within Rmd and knit to pdf. It seems to be producing a blank window in addition to my plot and in the knitted pdf the blank plot window appears ruining formatting.
Still a weird bug, but I found a work around. If you include fig.keep="last" in the code chunk it will only print the last plot and not the blank window
Good that you found the workaround for knitr, I was just about to suggest that.
We are aware of this issue, it's a problem caused by mixing base and grid graphics. Unfortunately, so far we haven't been able to fix it so that the figures and their margins would work as they are supposed to in all situations, so this remains an open issue.
I am trying to create an ssplot within Rmd and knit to pdf. It seems to be producing a blank window in addition to my plot and in the knitted pdf the blank plot window appears ruining formatting.
head(noh)
PID NoH1 NoH2 NoH3 NoH4 NoH5 NoH6 NoH7 NoH8 NoH9 NoH10 NoH11 NoH12
1 1001 1 0 1 0 1 0 1 0 0 0 0 0
2 1004 1 0 1 1 0 1 1 0 1 0 1 0
3 1005 0 0 0 0 0 0 0 0 1 0 0 0
4 1007 0 1 1 0 0 1 1 1 1 1 1 0
5 1011 0 0 0 0 0 0 0 0 0 0 0 1
6 1056 0 0 0 0 0 0 0 0 0 0 0 0
noh_seq<-seqdef(noh[,2:13],start=1, labels = c("Heavy","Not Heavy"))
attr(noh_seq, "cpal") <- c("violetred2", "darkgoldenrod2")
ssplot(noh_seq,
sortv = "from.start", sort.channel = 1, type = "I",
ylab = c("Patients"),
xtlab = 1:12, xlab = "Week", title = "All Patients")
The text was updated successfully, but these errors were encountered: