ho creato il mio set di dati per dimostrare come farlo:
dati:
x <- runif(12,1,1.5)
y <- runif(12,1,1.5)
z <- runif(12,1,1.5)
m <- letters[1:12]
df <- data.frame(x,y,z,m)
Soluzione:
#first of all you need to melt your data.frame
library(reshape2)
#when you melt essentially you create only one column with the value
#and one column with the variable i.e. your x,y,z
df <- melt(df, id.vars='m')
#ggplot it. x axis will be m, y will be the value and fill will be
#essentially your x,y,z
library(ggplot2)
ggplot(df, aes(x=m, y=value, fill=variable)) + geom_bar(stat='identity')
uscita:

Se si desidera che le barre uno accanto all'altro è necessario specificare la posizione dodge
a geom_bar
cioè:
ggplot(df, aes(x=m, y=value, fill=variable)) +
geom_bar(stat='identity', position='dodge')

Potete fornire qualche dati riproducibili per dimostrare ciò che vuoi realizzare? – cdeterman
Includi un [esempio riproducibile] (http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) con dati di input di esempio e mostra il codice che hai scritto lontano. – MrFlick
Scusa, non è stato caricato all'inizio, ho avuto qualche problema con le foto –