plot.prmap: Plot method for the prmap function

plot.prmapR Documentation

Plot method for the prmap function

Description

Plot method for the prmap function

Usage

## S3 method for class 'prmap'
plot(
  x,
  plots = "",
  scaling = 2,
  fontsz = 5,
  seed = 1234,
  shiny = FALSE,
  custom = FALSE,
  ...
)

Arguments

x

Return value from prmap

plots

Components to include in the plot ("brand", "attr"). If data on preferences is available use "pref" to add preference arrows to the plot

scaling

Arrow scaling in the brand map

fontsz

Font size to use in plots

seed

Random seed

shiny

Did the function call originate inside a shiny app

custom

Logical (TRUE, FALSE) to indicate if ggplot object (or list of ggplot objects) should be returned. This option can be used to customize plots (e.g., add a title, change x and y labels, etc.). See examples and https://ggplot2.tidyverse.org/ for options.

...

further arguments passed to or from other methods

Details

See https://radiant-rstats.github.io/docs/multivariate/prmap.html for an example in Radiant

See Also

prmap to calculate results

summary.prmap to plot results

Examples

result <- prmap(computer, brand = "brand", attr = "high_end:business")
plot(result, plots = "brand")
plot(result, plots = c("brand", "attr"))
plot(result, scaling = 1, plots = c("brand", "attr"))
prmap(
  retailers,
  brand = "retailer",
  attr = "good_value:cluttered",
  pref = c("segment1", "segment2")
) %>% plot(plots = c("brand", "attr", "pref"))


radiant.multivariate documentation built on Sept. 23, 2023, 9:06 a.m.