I am new to histograms in ggplot2. I am trying to use ggplot2 to build a histogram for the dataset "Admission"(the picture below). I am using the "Gender" column to be the x-axis, and cut by the "Admit" column. However, the graph(the picture below) only shows the number of male and female which is 2 but not the data in the "Freq" column. This is the code(X is the dataset):
  ggplot(X, aes( x=Gender, fill=Admit) )+
  geom_bar(color="black") +
  labs(x="Gender",
       title="Adimission",
       fill="Admit")
I am not sure that my thinking is right, is there any one can give me some hints? Thanks.


 
     
    
