Obtain the viewport name of the chart

get_viewport(
  chartcode,
  yname,
  chartgrp = get_chartgrp(chartcode),
  number = TRUE
)

Arguments

chartcode

The chart code, returned by create_chartcode()

yname

Names of the response variable

chartgrp

The chart group. If not specified, it is calculated automatically.

number

If number == TRUE the function return the viewport number. If number == FALSE the function return the viewport name.

Value

Number, or name, of the viewport