Skip to content

Commit 7c6dd60

Browse files
committed
Site updated at 2015-12-12 09:29:56 UTC
1 parent 4bbb90f commit 7c6dd60

File tree

1,269 files changed

+52921
-246
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,269 files changed

+52921
-246
lines changed

all_static/css/modules.css

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ LANGUAGE PAGES
818818
.btnrow-full-bleed a.button{
819819
color: #444;
820820
font-size: 16px;
821-
font-weight: 300;
821+
font-weight: 300;
822822
background: none !important;
823823
}
824824

@@ -928,19 +928,24 @@ NAVIGATION BAR STYLING
928928
/***********************
929929
LANGUAGE INDEX PAGE STYLING
930930
***********************/
931-
932-
.five-column-clear{
933-
clear: both;}
934-
.three-column-clear{
935-
display: none;}
931+
.three-column-clear{
932+
clear: none;}
933+
.five-column-clear{
934+
clear: both;}
936935

937936
@media (max-width: 750px) {
938-
.five-column-clear{
939-
display: none;}
940937
.three-column-clear{
941938
clear: both;}
939+
.five-column-clear{
940+
clear: none;}
942941
}
943942

943+
@media (max-width: 550px) {
944+
.three-column-clear{
945+
clear: none;}
946+
.five-column-clear{
947+
clear: none;}
948+
}
944949
/***********************
945950
GETTING STARTED STYLING
946951
***********************/
@@ -1036,7 +1041,7 @@ FLOATING REFERENCE NAV
10361041
background: whitesmoke;
10371042
padding: 40px;
10381043
height: 100%;
1039-
border: thin solid #ddd;
1044+
border: thin solid #ddd;
10401045
}
10411046

10421047
#reference-side-nav ul{

ggplot2/box-plots/index.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,33 @@ <h1 class="centered" >
22722272

22732273

22742274

2275+
2276+
2277+
2278+
2279+
2280+
2281+
2282+
2283+
2284+
2285+
2286+
2287+
2288+
2289+
2290+
2291+
2292+
2293+
2294+
2295+
2296+
2297+
2298+
2299+
2300+
2301+
22752302

22762303

22772304

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
library(foreign)
2+
library(MASS)
3+
library(Hmisc)
4+
library(reshape2)
5+
library(plotly)
6+
7+
dat <- read.dta("http://www.ats.ucla.edu/stat/data/ologit.dta")
8+
lapply(dat[, c("apply", "pared", "public")], table)
9+
ftable(xtabs(~ public + apply + pared, data = dat))
10+
11+
ggplot(dat, aes(x = apply, y = gpa)) +
12+
geom_boxplot(size = .75) +
13+
facet_grid(pared ~ public, margins = TRUE)
14+
15+
ggplotly()
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
library(plyr)
2+
library(reshape2)
3+
library(plotly)
4+
5+
set.seed(1234)
6+
x<- rnorm(100)
7+
y.1<-rnorm(100)
8+
y.2<-rnorm(100)
9+
y.3<-rnorm(100)
10+
y.4<-rnorm(100)
11+
12+
df<- (as.data.frame(cbind(x,y.1,y.2,y.3,y.4)))
13+
14+
dfmelt<-melt(df, measure.vars = 2:5)
15+
16+
ggplot(dfmelt, aes(x=factor(round_any(x,0.5)), y=value,fill=variable))+
17+
geom_boxplot()+
18+
facet_grid(.~variable)+
19+
labs(x="X (binned)")+
20+
theme(axis.text.x=element_text(angle=-90, vjust=0.4,hjust=1))
21+
22+
ggplotly()
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
library(plotly)
2+
3+
set.seed(1234)
4+
dat <- data.frame(cond = factor(rep(c("A","B"), each=200)), rating = c(rnorm(200),rnorm(200, mean=.8)))
5+
6+
ggplot(dat, aes(x=cond, y=rating)) + geom_boxplot()
7+
8+
ggplotly()
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
library(plotly)
2+
3+
set.seed(1234)
4+
dat <- data.frame(cond = factor(rep(c("A","B"), each=200)), rating = c(rnorm(200),rnorm(200, mean=.8)))
5+
6+
ggplot(dat, aes(x=cond, y=rating)) + geom_boxplot() +
7+
stat_summary(fun.y=mean, geom="point", shape=5, size=4)
8+
9+
ggplotly()
10+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
library(plotly)
2+
3+
set.seed(1234)
4+
dat <- data.frame(cond = factor(rep(c("A","B"), each=200)), rating = c(rnorm(200),rnorm(200, mean=.8)))
5+
6+
ggplot(dat, aes(x=cond, y=rating, fill=cond)) + geom_boxplot()
7+
8+
ggplotly()
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
library(plotly)
2+
3+
set.seed(1234)
4+
dat <- data.frame(cond = factor(rep(c("A","B"), each=200)), rating = c(rnorm(200),rnorm(200, mean=.8)))
5+
6+
ggplot(dat, aes(x=cond, y=rating, fill=cond)) + geom_boxplot() +
7+
guides(fill=FALSE) + coord_flip()
8+
9+
ggplotly()
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
library(plotly)
2+
3+
df <- data.frame(x = 1:10,
4+
y = 1:10,
5+
ymin = (1:10) - runif(10),
6+
ymax = (1:10) + runif(10),
7+
xmin = (1:10) - runif(10),
8+
xmax = (1:10) + runif(10))
9+
10+
ggplot(data = df,aes(x = x,y = y)) +
11+
geom_point() +
12+
geom_errorbar(aes(ymin = ymin,ymax = ymax)) +
13+
geom_errorbarh(aes(xmin = xmin,xmax = xmax))
14+
15+
ggplotly(filename="ggplot2-docs/geom_errorbar")
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
library(plotly)
2+
3+
population <- data.frame(Year=seq(1790, 1970, length.out=length(uspop)),
4+
Population=uspop,
5+
Error=rnorm(length(uspop), 5))
6+
7+
library(ggplot2)
8+
ggplot(population, aes(x=Year, y=Population,
9+
ymin=Population-Error, ymax=Population+Error))+
10+
geom_line()+
11+
geom_point(pch=2)+
12+
geom_errorbar(width=0.9)
13+
14+
ggplotly(filename="ggplot2-docs/geom_point")

0 commit comments

Comments
 (0)