본문 바로가기

카테고리 없음

create a histogram of tenure


```{r Labeling Plots}

ggplot(aes(x = tenure / 365), data = pf) + 

  geom_histogram(color = 'black', fill = '#F79420') + 

  scale_x_continuous(breaks = seq(1, 7, 1), limits = c(0, 7)) + 

  xlab('Number of years using Facebook') + 

  ylab('Number of users in sample')

```