I've got a problem with extra space being put to the right and below plots made with tkrplot in R, as below. I've tried changing hscale and vscale, but all that does is magnify/reduce the overall size of each plot, along with the extra unwanted space.
The code that generates these looks like this:
ct <- tkrplot(pane, fun)
tkgrid(ct, row = deRow, column = deCol)
where deRow is 1, and deCol is 1 for the first one, and 2 for the second.
Added: The function for the second plot looks like this:
fun = function(){
....
fp2 = ggplot(df, aes(time, val, color=iPer)) +
geom_point()+
geom_path(aes(group = iPer))
print(fp2)
}
Any help appreciated.
