I want to make a stacked bar plot with one bar for two variables from my
data "chir", the two variables have about 100 values like no, yes and na. I
want to show how many no, yes and na they both have together with the
stacked bar. I tried to melt these to variables first like this:

melt1=melt(data_chir, measure.vars=c("N1_re", "N2_re"), var="zpd")

but it says " arguments imply differing number of rows: 98, 196"


maybe there is another way to make the plot without melt?

thanks in advance!

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to