Skip to content

Commit

Permalink
making plot better
Browse files Browse the repository at this point in the history
  • Loading branch information
petermeissner committed Feb 7, 2016
1 parent 1028de1 commit 8f51dd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions R/diffr.r
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ plot.diffr <- function(diffr){
}
LWD=1.5
rows <- max(max(diffr$print$lnr1, na.rm=TRUE), max(diffr$print$lnr2, na.rm=TRUE))
diffr$print$lnr2<-0-diffr$print$lnr2 +rows+1
diffr$print$lnr1<-0-diffr$print$lnr1 +rows+1
plot(c(0.8,4.2), c(0,rows+1), xlab = "versions", ylab = "line numbers",
col="white", yaxs = "i", xaxs = "i", axes = FALSE)
axis(1, at = c(1.5,3.5), labels=c("1", "2"))
Expand Down
2 changes: 1 addition & 1 deletion README.html

Large diffs are not rendered by default.

Binary file modified README_files/figure-html/unnamed-chunk-2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8f51dd5

Please sign in to comment.