More a general R problem. See ?merge
Bmerge <- merge(valuefile, valuefileB, by="Label")
> library(ggplot2)
> library(grid)
I'm confused as to why you've made another dataframe here. See
?colnames if you are just trying to change the names.
> df = data.frame(Control =valuefile$value_Control, tacky=valuefile
> $value_tacky, valuelab=valuefile$labelcol)
>
>
Is this about right?
ggplot(valuefile, aes(x=Control, y=Tacky)) +
geom_point(alpha=0.4) +
geom_point(data=Bmerge, aes(x=Control, y=Tacky), col='red')
There are undoubtedly more elegant ways of doing this but this should
work if I understand your problem.
HTH,
Sam
> plot1<-ggplot(data=df, aes(x=Control, y=tacky, colour=subset )) +
> geom_point() + geom_text(size=2,aes(label=valuelab)) +
> geom_smooth(method="lm")
>
>
>
>
>
>
> If need be I can alter the subset files manually to make a potential
> solution easier such as maybe adding a subset value column to each
> subset file.
>
> thanks
>
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2