La grafica base possono ben tracciare un grafico a scatole utilizzando un semplice comandoCome si disegna un boxplot senza specificare l'asse x?
data(mtcars)
boxplot(mtcars$mpg)
Ma qplot
richiede asse y. Come posso ottenere con qplot lo stesso come boxplot della grafica di base e non ottenere questo errore?
qplot(mtcars$mpg,geom='boxplot')
Error: stat_boxplot requires the following missing aesthetics: y
vedo. Quindi il qplot sarebbe qplot (fattore (0), mtcars $ mpg, geom = 'boxplot') – userJT