prepQuitteForScatter: selects two variables from a long format Quitte and puts them...

View source: R/prepQuitteForScatter.R

prepQuitteForScatterR Documentation

selects two variables from a long format Quitte and puts them into a wide format Quitte

Description

QuitteIn contains two variables containedin varNames that should be plotted in a scatter plot. The functions forms the new QuitteOut with the variables x and y. QuitteOut can be used in ggplot with plotting x and y. The unit needs to be replaced by None.

Usage

prepQuitteForScatter(quitteIn, varNames)

Arguments

quitteIn

Quitte with original data

varNames

Vector with two variable names that must be contained in QuitteIn$variable

Value

quitte object

Author(s)

Nico Bauer, Anselm Schultes, Jerome Hilaire

Examples


  ## Not run: 
    quitteOut <- prepQuitteForScatter(quitteIn, c('Emissions|CO2', 'Price|Carbon'))
  
## End(Not run)


pik-piam/quitte documentation built on April 26, 2024, 12:58 a.m.