Skip to content

Commit

Permalink
Updated car:: example
Browse files Browse the repository at this point in the history
  • Loading branch information
aurora-mareviv committed May 14, 2019
1 parent 5292a6f commit 77c1343
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ Network Trash Folder
Temporary Items
.apdisk


# non-standard directories
/ignore_mthapower/



2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Title: Sample Size and Power for Association Studies Involving
Mitochondrial DNA Haplogroups
Version: 0.1.1
Authors@R: c(
person(c("A"), "Baluja",
person(c("Aurora"), "Baluja",
role = c("aut", "cre"),
email = "[email protected]",
comment = c(ORCID = "0000-0002-5204-0771"))
Expand Down
6 changes: 4 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ output:
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "images/README-"
fig.path = "man/figures/README-"
# fig.path = "docs/images/README-"
# fig.path = "images/README-"
# base.dir = "./"
)
```

# mthapower <img src="images/mthapower.png" align="right" width="100px" />
# mthapower <img src="./man/figures/mthapower.png" align="right" width="100px" />

[![CRAN version](https://www.r-pkg.org/badges/version/mthapower)](https://cran.r-project.org/package=mthapower)
[![Downloads from Rstudio mirror](https://cranlogs.r-pkg.org/badges/grand-total/mthapower)](https://www.r-pkg.org/pkg/mthapower)
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->
mthapower <img src="images/mthapower.png" align="right" width="100px" />
========================================================================
mthapower <img src="./man/figures/mthapower.png" align="right" width="100px" />
===============================================================================

[![CRAN version](https://www.r-pkg.org/badges/version/mthapower)](https://cran.r-project.org/package=mthapower) [![Downloads from Rstudio mirror](https://cranlogs.r-pkg.org/badges/grand-total/mthapower)](https://www.r-pkg.org/pkg/mthapower)

Calculate sample size and post-hoc power of association studies involving mitochondrial DNA haplogroups - Based on Samuels et al. AJHG, 2006. 78(4):713-720. [DOI:10.1086/502682](https://www.ncbi.nlm.nih.gov/pmc/PMC1424681)
Calculate sample size and power for association studies involving mitochondrial DNA haplogroups - Based on Samuels et al. AJHG, 2006. 78(4):713-720. [DOI:10.1086/502682](https://www.ncbi.nlm.nih.gov/pmc/PMC1424681)

Installation
------------
Expand Down Expand Up @@ -70,7 +70,7 @@ mydata %>%
plot(mydata)
```

![](images/README-example-1.png)
![](man/figures/README-example-1.png)

### Power estimation

Expand Down Expand Up @@ -111,10 +111,10 @@ bindata$OR <- rep(factor(c(1.50,1.75,2,2.5)),
# Create plot:
# install.packages("car")
library(car)
scatterplot(power~ncases | OR, reg.line=FALSE,
smooth=FALSE, spread=FALSE,
boxplots=FALSE, span=0.25, by.groups=FALSE,
scatterplot(power~ncases | OR, regLine=FALSE,
smooth=FALSE,
boxplots=FALSE, by.groups=TRUE,
data=bindata)
```

![](images/README-example2b-1.png)
![](man/figures/README-example2b-1.png)
4 changes: 2 additions & 2 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/images/README-example-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/README-example2b-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/mthacases.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/mthapower.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed images/README-example-1.png
Binary file not shown.
Binary file removed images/README-example2b-1.png
Binary file not shown.
Binary file added man/figures/README-example-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added man/figures/README-example2b-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes

0 comments on commit 77c1343

Please sign in to comment.