Suppose I have written a user defined function to create a histogram:
sunny <- function(x,nadia) {
attach(nadia)
hist(x, main="x", col="sea green", border="white",breaks=100)
}
Now my problem is I would like to have the variable name displayed on the graph, which is not appearing. I tried with the main = option
but is it is showing only the character x
since it is in quotes. I would be really glad if some one could solve my issue. Thanks!