Using the Economics Journal Subscription Dataset, I want to address the following question: How does the subscription price affects the number of subscriptions. This dataset contains data on 180 economics journals for the year 2000.
I used two variables. The dependent variable “libprice” is the subscription price. The independent variable “oclc” is the number of subscriptions.
I used the following codes
for my scatter plot:
> library(readxl)
> journals <-
read_excel("Desktop/journals.xlsx")
> View(journals)
> ggplot(data=journals, aes(x=libprice, y=oclc))
+ geom_point() + geom_smooth(method ='lm', se=FALSE) + labs(title
="Economics Journal Subscription Data", x="Subscription
Price", y="Number of Subscriptions", caption = "Anna
Sobolkova")
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |