This is my first question about R in a forum, so sorry in advance if I made any mistake formulating the question or specifying the title.
The point is that for a particular task with ggplot I define the aesthetics outside the ggplot function and then provide it as an argument.
>mytmpaes<-aes(x=Sample,y=ddCt.lin,ymax=ddCt.lin+ddCt.lin.sd,ymin=ddCt.linddCt.lin.sd,fill=factor(endog))
>my.ggplot(x,mytmpaes)
But sometimes I just want to modify some objects of the mytmpaes list without defining all of them againg using aes(). However, I don't really know how to deal with this special list. The aes list looks like this:
>mytmpaes
List of 5
$ x : symbol Sample
$ y : symbol ddCt.lin
$ ymax : language ddCt.lin + ddCt.lin.sd
$ ymin : language ddCt.lin - ddCt.lin.sd
$ fill : language factor(Rep)
I figured out how to modify some of them like this:
> mytmpaes$x<-as.symbol('Names')
> mytmpaes$fill<-call('factor',quote(target))
> mytmpaes
List of 5
$ x : symbol Names
$ y : symbol ddCt.lin
$ ymax: language ddCt.lin + ddCt.lin.sd
$ ymin: language ddCt.lin - ddCt.lin.sd
$ fill: language factor(endog)
However, I couldn't find the way to modify the ymax or ymin with a similar expression. For example, I would like to change ymax to 'ddCt.log2 - ddCt.log2.sd'.
Can someone give me some advise for it? Also, is there a more correct way to modify the aes list?
Thanks,
Alejandro