Skip to content

Commit e1289a1

Browse files
author
ercbk
committed
adjusted min.size for bar labels
1 parent d391fe6 commit e1289a1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.Rmd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,7 @@ b <- ggplot(subtargets, aes(y = elapsed, x = repeats,
151151
fill = n, label = elapsed)) +
152152
geom_col(position = position_dodge(width = 0.85)) +
153153
scale_fill_manual(values = fill_colors[4:7]) +
154-
# geom_text(hjust = 1.3, size = 3.5,
155-
# color = "white", position = position_dodge(width = 0.85)) +
156-
geom_bar_text(position = "dodge", min.size = 3.5,
154+
geom_bar_text(position = "dodge", min.size = 9,
157155
place = "right", contrast = TRUE) +
158156
coord_flip() +
159157
labs(y = "Runtime (hrs)", x = "Repeats",
@@ -202,7 +200,7 @@ e <- ggplot(subtargets, aes(x = repeats, y = percent_error, group = n)) +
202200
)
203201
```
204202

205-
```{r kj-patch, echo=FALSE, fig.width=10, fig.height=6}
203+
```{r kj-patch, echo=FALSE, fig.width=12, fig.height=7}
206204
b + e + plot_layout(guides = "auto") +
207205
plot_annotation(title = "Kuhn-Johnson") &
208206
theme(legend.position = "top",
4.39 KB
Loading

0 commit comments

Comments
 (0)