Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ Description: A ggplot2 based biplot. It provides a drop-in
replacement for biplot.princomp(). It implements a
biplot and scree plot using ggplot2.
Depends:
ggplot2, plyr, scales, grid
ggplot2,
plyr,
scales,
grid
License: GPL-2
URL: http://github.com/vqv/ggbiplot
Collate:
'ggbiplot.r'
'ggscreeplot.r'
RoxygenNote: 7.1.1
6 changes: 6 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# Generated by roxygen2: do not edit by hand

export(ggbiplot)
export(ggscreeplot)
import(ggplot2)
import(grid)
import(plyr)
import(scales)
13 changes: 8 additions & 5 deletions R/ggbiplot.r
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
#' @param varname.size size of the text for variable names
#' @param varname.adjust adjustment factor the placement of the variable names, >= 1 means farther from the arrow
#' @param varname.abbrev whether or not to abbreviate the variable names
#' @param circle.prob (in progress)
#' @param ... (in progress)
#'
#'
#' @import ggplot2
#' @import plyr
#' @import scales
#' @import grid
#'
#' @return a ggplot2 plot
#' @export
Expand All @@ -54,11 +62,6 @@ ggbiplot <- function(pcobj, choices = 1:2, scale = 1, pc.biplot = TRUE,
varname.size = 3, varname.adjust = 1.5,
varname.abbrev = FALSE, ...)
{
library(ggplot2)
library(plyr)
library(scales)
library(grid)

stopifnot(length(choices) == 2)

# Recover the SVD
Expand Down
1 change: 1 addition & 0 deletions ggbiplot.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ LaTeX: XeLaTeX
BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageRoxygenize: rd,collate,namespace,vignette
95 changes: 50 additions & 45 deletions man/ggbiplot.Rd

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

23 changes: 10 additions & 13 deletions man/ggscreeplot.Rd

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