I came across the Microsoft Edx R Data Science MOOC plotting chapter and I stumbled on their sample code with 2 dots before & after a token. What could this mean?
I've searched around the net for some answers to this but found none. The closest I got was 2 dots before a numeric token which made the token a sequence placeholder for parameters passed in.
plot_hist_grid = function(df, numcols, bins = 10){ options(repr.plot.width=6, repr.plot.height=3) # Set the initial plot area dimensions for(col in numcols){ if(is.numeric(df[,col])){ bw = (max(df[,col]) - min(df[,col]))/(bins + 1) p = ggplot(df, aes_string(col)) + geom_histogram(binwidth = bw, aes(y=..density..), alpha = 0.5) + geom_density(aes(y=..density..), color = 'blue') + geom_rug() + facet_grid(. ~ drive.wheels) print(p) } } } plot_hist_grid(auto_prices, numcols)
- I just want to know the meaning of the 2 dots before & after the token "density" in the ggplot statement.