View source: R/xy_to_tikz_line.R
xy_to_tikz_line | R Documentation |
xy_to_tikz_line
xy_to_tikz_line(x, y, color, legend, path, file_name, round_n = 3, line_type = "", verbose = FALSE, fill_opa = 1, sacle = 2)
x |
first coordinate. |
y |
second coordinate. |
color |
color of point. |
legend |
name of the realization. |
path |
directory to the .tex file. |
file_name |
name of the .tex file. |
round_n |
number of decimal digits. |
line_type |
default is normal. dashed, dotted is possible. |
verbose |
default 'FALSE'. Set to 'TRUE' for printing the string. |
fill_opa |
fill opacity of the line. |
sacle |
scaling the size of the line. |
saved file/string with a default tikz picture.
## Not run: library(homemade) library(tidyverse) df1 <- iris %>% filter(Species == "setosa") %>% mutate(x = Sepal.Length, y = Petal.Length) df2 <- iris %>% filter(Species == "versicolor") %>% mutate(x = Sepal.Length, y = Petal.Length) xy_to_tikz_line(x = df1$x, y = df1$y, color = "red", legend = "setosa", path = "~/Downloads/", file_name = "setosa") xy_to_tikz_line(x = df2$x, y = df2$y, color = "blue", legend = "versicolor", path = "~/Downloads/", file_name = "versicolor") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.