xy_to_tikz_line: xy_to_tikz_line

View source: R/xy_to_tikz_line.R

xy_to_tikz_lineR Documentation

xy_to_tikz_line

Description

xy_to_tikz_line

Usage

xy_to_tikz_line(x, y, color, legend, path, file_name, round_n = 3,
  line_type = "", verbose = FALSE, fill_opa = 1, sacle = 2)

Arguments

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.

Value

saved file/string with a default tikz picture.

Examples

## 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)


anderslaunerbaek/homemade documentation built on Sept. 18, 2022, 6:47 a.m.