# NOT RUN {
library(ggplot2)
fig1 <- gg_pta(data.frame())
print(fig1)
fig2 <- gg_pta(data.frame(), xlab="Frequency [Hz]", xlim=c(125,12000),
xbreaks = c(125, 250, 500, 1000, 2000, 4000, 8000, 12000),
xlabels = c("125", "250", "500", "1k", "2k", "4k", "8k", "12k"))
print(fig2)
expl <- data.frame(x=rep(c(500, 1000, 2000, 4000), 200),
y=5 + 70*rbeta(200,1,5))
fig3 <- gg_pta(expl, lettermark = "R",
xlab="frecuencia", ylab="volumen") +
geom_boxplot(aes(x=x, y=y, group=x)) +
theme_grey()
print(fig3)
# }
Run the code above in your browser using DataLab