@@ -229,9 +229,9 @@ GeomTextLastNew <- ggproto(
229
229
required_aes = c(" x" , " y" ),
230
230
231
231
default_aes = aes(
232
- colour = " black" , size = 3.88 , angle = 0 ,
232
+ colour = " black" , size = 3.88 , angle = 0 , label = NA ,
233
233
alpha = NA , family = " " , fontface = 1 , lineheight = 1.2 ,
234
- hjust = 0.5 , vjust = 0.5 , point.size = 1 ,
234
+ hjust = 0 , vjust = 0.5 , point.size = 1 ,
235
235
segment.linetype = 1 , segment.colour = NULL , segment.size = 0.5 , segment.alpha = NULL ,
236
236
segment.curvature = 0 , segment.angle = 90 , segment.ncp = 1 ,
237
237
segment.shape = 0.5 , segment.square = TRUE , segment.squareShape = 1 ,
@@ -258,7 +258,7 @@ GeomTextLastNew <- ggproto(
258
258
nudge_y = 0 ,
259
259
xlim = c(NA , NA ),
260
260
ylim = c(NA , NA ),
261
- direction = " both " ,
261
+ direction = " y " ,
262
262
seed = NA ,
263
263
verbose = FALSE
264
264
) {
@@ -347,6 +347,7 @@ GeomTextLastNew <- ggproto(
347
347
verbose = verbose ,
348
348
cl = " textlastrepel"
349
349
))
350
+
350
351
},
351
352
352
353
draw_key = draw_key_text
@@ -384,9 +385,10 @@ makeContent.textlastrepel <- function(x) {
384
385
hjust = row $ hjust ,
385
386
vjust = row $ vjust ,
386
387
gp = gpar(
387
- fontsize = row $ size * .pt ,
388
+ col = alpha(row $ colour , row $ alpha ),
389
+ fontsize = row $ size * .pt ,
388
390
fontfamily = row $ family ,
389
- fontface = row $ fontface ,
391
+ fontface = row $ fontface ,
390
392
lineheight = row $ lineheight
391
393
)
392
394
)
0 commit comments