hadley/ggplot2 — Issue #380: geom_text rendering is blurred
Author: mbask
Created: 2012-01-31 10:18:39+00:00
State: open

I have noticed that the textual annotation rendered by geom_text on all my plots are somewhat blurred, after updating to ggplot2 0.9.0.
Here is a minimal reproducible example:

library(ggplot2)

Data <- data.frame(
X = rnorm(10),
Y = rnorm(10)
)

ggplot(data = Data, aes(x = X, y = Y))+
geom_point() +
geom_text(aes(0.5, 0.5, label="geom_text"))

Additionally, I noticed that geom_text on elaborate plots takes ages to render.
Consider the same example as before:

Without geom_text:

system.time(
print(
ggplot(data = Data, aes(x = X, y = Y)) +
geom_point()
)
)
user system elapsed
0.183 0.006 0.195

With geom_text:

system.time(
print(
ggplot(data = Data, aes(x = X, y = Y)) +
geom_point() +
geom_text(aes(0.5, 0.5, label="geom_text"))
)
)
user system elapsed
0.219 0.006 0.230

That's almost a 20% increase over non geom_text example!
I am on a Mac.