Displaying 1 result from an estimated 1 matches for "v1_p2_plot".
2009 Mar 05
1
Using vectors of names in calls for functions
...rs where I store the names of my columns."
I have understood that this is a very discussed topic, that many post
have been exhanged but I cannot understand what is the good way to
handle this and not to use this vectors of names ...
below is the idea of what I would like to have:
? ? ? ? ? ?V1_P2_plot<-function(df, x, y, z) {
? ? ? ? ? ? ? ?pp<-ggplot(df, aes(x = x, y= y , z = z ))
? ? ? ? ? ? ? ?pp<-pp + geom_tile(aes(fill= z))
? ? ? ? ? ? ? ?return(pp)
? ? ? ? ? ?}
that would allow this type of call :
j<-c("k", "l")
i<-"m"
m<-rnorm(25)
vsim<-...