Economics of Money and Banking / Perry G Mehrling / Ders 1

R Studio ve ggplot2() : xLab yLab ylim

ggplot2() için öncelikle "tidyverse" paketini yüklemelisiniz. 




  • Tidyverse'i açıp, college veritabanını indirelim.

  • 
    
    library(tidyverse)
    
    college <- read_csv('http://672258.youcanlearnit.net/college.csv')
    
    
    


  • Rename the axes Resize the y-axis ylim function

  • 
    
    ggplot(data=college) +
      geom_bar(mapping=aes(x=region, fill=control)) +
      theme(panel.background=element_blank()) +
      theme(plot.background=element_blank()) +
      xlab("Region") +
      ylab("Number of Schools") +
      ylim(0,500)
    
    
    
    
    
    

    Yorumlar