-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mostly documentation updates but also noticed I was @exporting most o…
…f the functions
- Loading branch information
Showing
11 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: DSTools | ||
Title: A Package for Working with DataShop StudentStep Exports | ||
Version: 0.0.2 | ||
Version: 0.1.0 | ||
Authors@R: person("Erik", "Harpstead", email = "[email protected]", role = c("aut", "cre")) | ||
Description: This package is primarily designed to make it eaiser to plot nicer looking and more informative learning curve from student-step export data from DataShop(https://pslcdatashop.web.cmu.edu/). Along with the main plotting function there are a set of utility functions that streamline working with the assumed format of a DataShop export. | ||
Depends: R (>= 3.2.5) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(ds.kcs) | ||
export(ds.models) | ||
export(ds.plot) | ||
export(ds.read) | ||
export(ds.save) | ||
export(ds.kcs) | ||
export(ds.models) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#' Read in a DataShop Student-Step rollup file | ||
#' | ||
#' @param file.name The name of the file to read in. | ||
#' @export | ||
ds.read <- function(file.name) { | ||
return(read.csv(file = file.name,sep="\t",check.names=FALSE,na.strings = c(""," ","#N/A"))) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
#library(ggplot2) | ||
|
||
#' Save a ds.plot in a commonly useful png format. | ||
#' | ||
#' This is just a basic wrapper around ggplot's ggsave but the default settings make it perfect for fitting into | ||
#' a single column of the ACM/EDM paper format. | ||
#' | ||
#' @param plot The plot data | ||
#' @param name The desired filename | ||
#' @param width The width in inches (defaults to 3, which is recommended width for AcM/EDM format) | ||
#' @param height The height in inches (which I default to 2.5) | ||
#' @param dpi The dpi to output at (defaults to 300) | ||
#' @export | ||
ds.save <- function(plot, name, width=3.3, height=2.08, dpi=300) { | ||
ggplot2::ggsave(name,plot=plot,width=width,height=height,dpi=dpi,units="in") | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.