Closed Vindaar closed 3 years ago
When trying to draw a single line using geom_linerange, we still walk over a full data frame. Consider:
geom_linerange
ggplot(df, aes(x, y, color = charge)) + geom_point() + geom_linerange(aes = aes(y = 0, xMin = 128, xMax = 640)) + geom_linerange(aes = aes(y = 256, xMin = 0, xMax = 768)) +
This should simply draw two lines. Instead each line range draws df.len lines on top of one another. We need to make sure in case we're looking at a constant column in all columns that we only consider unique values.
df.len
When trying to draw a single line using
geom_linerange
, we still walk over a full data frame. Consider:This should simply draw two lines. Instead each line range draws
df.len
lines on top of one another. We need to make sure in case we're looking at a constant column in all columns that we only consider unique values.