Created
September 18, 2017 16:50
-
-
Save dvdesolve/52e24636010ede4901f62618eecaba79 to your computer and use it in GitHub Desktop.
tikzDevice output example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tikzDevice) | |
library(ggplot2) | |
df <- read.table("data.dat", dec = ",", header = T) | |
tikz(file = "fixedconc.tex", width = 6, height = 4) | |
ggplot(df, aes(x = factor(type), y = delta, fill = fixed)) + | |
geom_bar(stat = "identity", position="dodge", colour="black") + | |
theme_bw() + theme(legend.title = element_blank(), axis.title.x = element_blank()) + | |
scale_fill_discrete(labels = c("fix undetectable", "fix detectable")) + | |
scale_x_discrete(labels = c("$K_\\textrm{I}$","$k_\\textrm{cat}$","$K_\\textrm{M}$","$K_\\textrm{P}$"), limits = c("Ki", "kcat", "Km", "Kp")) + | |
ylab("$\\delta$, \\%") | |
dev.off() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment