multiple_png: imports multiple png file an maks to the specific horizont...

Description Usage Arguments Examples

View source: R/png_import.R

Description

imports multiple png file an maks to the specific horizont position

Usage

1
multiple_png(shape_temp, path_temp, ...)

Arguments

shape_temp

a simple feature with the same length of "path_temp"

path_temp

a character string with the path of each texture .png

...

is passed to function png_import

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(dplyr) 
library(ggplot2)

sf_example <- soilprofile2::soil_example_sf
str_Bvh <- system.file("extdata", "broeckel.png", package = "soilprofile2")
str_BvCv <- system.file("extdata", "prismen.png", package = "soilprofile2")

str_all <- multiple_png(sf_example[c(2,3), ], c(str_Bvh, str_BvCv))

sf_example %>% 
  ggplot() +
  geom_sf(fill = sf_example$rgb_col) +
  geom_sf(data = str_all, fill = "black") +
  soil_theme()

nardusstricta/soilprofile2 documentation built on May 23, 2019, 6:04 p.m.