-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathbarplot_package_users_per_day.Rd
More file actions
59 lines (54 loc) · 2.01 KB
/
Copy pathbarplot_package_users_per_day.Rd
File metadata and controls
59 lines (54 loc) · 2.01 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{barplot_package_users_per_day}
\alias{barplot_package_users_per_day}
\title{barplot for the number of users installation of a package}
\usage{
barplot_package_users_per_day(pkg_name, dataset, remove_dups = TRUE, ...)
}
\arguments{
\item{pkg_name}{a string of the package we are interested
in checking.}
\item{dataset}{a dataset output from running
\link{read_RStudio_CRAN_data}.}
\item{remove_dups}{default is TRUE. Should the duplicate
user ids (based on their ips) be removed. If TRUE, then
the plot is the number of unique users who have
downloaded our package everyday.}
\item{...}{not in use.}
}
\value{
Returns the total number of downloads of the package for
that time period.
}
\description{
This function is a first template for creating a barplot of
the number of downloads a package had in a time period.
This function is based on some other functions, have a look
at the example for more details.
}
\details{
RStudio maintains its own CRAN mirror,
\url{http://cran.rstudio.com} and offers its log files.
}
\examples{
\dontrun{
# The first two functions might take a good deal of time to run (depending on the date range)
RStudio_CRAN_data_folder <-
download_RStudio_CRAN_data(START = '2013-04-02',
END = '2013-04-05')
# around the time R 3.0.0 was released
my_RStudio_CRAN_data <- read_RStudio_CRAN_data(RStudio_CRAN_data_folder)
my_RStudio_CRAN_data <- format_RStudio_CRAN_data(my_RStudio_CRAN_data)
head(my_RStudio_CRAN_data)
lineplot_package_downloads(pkg_names = c("ggplot2", "reshape", "plyr", "installr"),
dataset = my_RStudio_CRAN_data)
# older plots:
# barplots: (more functions can easily be added in the future)
barplot_package_users_per_day("installr", my_RStudio_CRAN_data)
barplot_package_users_per_day("plyr", my_RStudio_CRAN_data)
}
}
\seealso{
\link{download_RStudio_CRAN_data},
\link{read_RStudio_CRAN_data},\link{barplot_package_users_per_day}
}