Skip to content

Commit

Permalink
ggplot2 changes for legends and blank themes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmyleswhite committed Sep 16, 2012
1 parent fd9f955 commit fcdde7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 08-PCA/chapter08.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ correlations <- as.numeric(cor.matrix)
ggplot(data.frame(Correlation = correlations),
aes(x = Correlation, fill = 1)) +
geom_density() +
opts(legend.position = 'none')
theme(legend.position = 'none')

# Sixth code snippet
pca <- princomp(date.stock.matrix[,2:ncol(date.stock.matrix)])
Expand Down Expand Up @@ -77,7 +77,7 @@ loadings <- as.numeric(principal.component)
ggplot(data.frame(Loading = loadings),
aes(x = Loading, fill = 1)) +
geom_density() +
opts(legend.position = 'none')
them(legend.position = 'none')

# Tenth code snippet
market.index <- predict(pca)[, 1]
Expand Down

0 comments on commit fcdde7e

Please sign in to comment.