xy_to_tikz_point: xy_to_tikz_point

View source: R/xy_to_tikz_point.R

xy_to_tikz_pointR Documentation

xy_to_tikz_point

Description

xy_to_tikz_point

Usage

xy_to_tikz_point(x, y, color, legend, path = "~/Downloads/",
  file_name = "setosa", round_n = 3, mark = "*", verbose = FALSE,
  fill_opa = 1, sacle = 1)

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.

mark

marking style.

verbose

default 'FALSE'. Set to 'TRUE' for printing the string.

fill_opa

fill opacity of the mark.

sacle

scaling the size of the mark.

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_point(x = df1$x, y = df1$y, color = "red", legend = "setosa", path = "~/Downloads/", file_name = "setosa_2")
  xy_to_tikz_point(x = df2$x, y = df2$y, color = "blue", legend = "versicolor", path = "~/Downloads/", file_name = "versicolor_2")

## End(Not run)


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