1

I am Using ggplot2 for plotting this image:

The thing is: On the X-Axes are ranges. What I would like to do: I would like to make each dot/line/whatever as big as the ranges (written on the X-Axes) are.

Is that possible? My code looks like:

ggplot(data, aes(as.character(paste(data$V3,data$V4,sep="-")), means, color = factor(numSamp),group = 1))+
  geom_point()+
  stat_smooth(method = "lm")

enter image description here

Cheers,

Mario

Andrie
  • 176,377
  • 47
  • 447
  • 496
  • 3
    Welcome to StackOverflow. I'm not sure I understand, or that what you are plotting even makes sense. Perhaps if you made a [reproducible example](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) that demonstrates your question / problem, people would find it easier to answer. – Andrie Aug 21 '12 at 15:47
  • 1
    Ditto to what Andre said. But to wager a guess: does using `geom_point(aes(size=V3))` or whatever you want as the size dimension work? – Justin Aug 21 '12 at 16:13
  • @Justin, geom_point is what I was looking for! Thanks. BTW: Sorry for my unclear question. –  Aug 22 '12 at 07:49

0 Answers0