Skip to content

Commit c4fe6e2

Browse files
committed
increase margins in plot() base graphics method for training history
1 parent 82ebc34 commit c4fe6e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/history.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ plot.keras_training_history <- function(x, y, metrics = NULL, method = c("auto",
146146
top_plot <- i == 1
147147
bottom_plot <- i == length(metrics)
148148

149-
mar <- c(1.5, 3, 0.5, 1.5)
149+
mar <- c(1.5, 5, 0.5, 1.5)
150150
if (top_plot)
151-
mar[3] %<>% `+`(1)
151+
mar[3] %<>% `+`(3.5)
152152
if (bottom_plot)
153-
mar[1] %<>% `+`(1)
153+
mar[1] %<>% `+`(3.5)
154154
par(mar = mar)
155155

156156
# select data for current panel

0 commit comments

Comments
 (0)