-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.Rhistory
40 lines (40 loc) · 1.04 KB
/
.Rhistory
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
31
32
33
34
35
36
37
38
39
40
library(beginr)
library(beginr)
library(beginr)
library(beginr)
mt <- bookdownplus::get_template()
View(mt)
library(beginr)
from = '2017-04-01'
mypkg = 'bookdownplus'
to = Sys.Date()
type = 'o'
pch = 19
col = 'blue'
cex = 1
textcex = 5
from <- as.Date(from)
to <- as.Date(to)
nr_down <- cranlogs::cran_downloads(packages = mypkg, from = from, to = to)
nr_down
nr_down$count[nr_down$count == 0] <- NA
nr_down$sum <- cumsum(nr_down$count)
# Sys.setlocale("LC_ALL","English")
oldpar <- par(mar = c(2,6,0.5,0), las = 1); on.exit(par(oldpar))
plot(nr_down$date,
nr_down$sum,
xlab = '', ylab = 'Downloads',
type = type, pch = pch, col = col, cex = cex)
nr_down$date
nr_down$sum
nr_down <- cranlogs::cran_downloads(packages = mypkg, from = from, to = to)
# nr_down$count[nr_down$count == 0] <- NA
nr_down$sum <- cumsum(nr_down$count)
# Sys.setlocale("LC_ALL","English")
oldpar <- par(mar = c(2,6,0.5,0), las = 1); on.exit(par(oldpar))
plot(nr_down$date,
nr_down$sum,
xlab = '', ylab = 'Downloads',
type = type, pch = pch, col = col, cex = cex)
library(beginr)
library(beginr)