View source: R/addCircleOfCor.R
| addCircleOfCor | R Documentation | 
createFactorMap() et alia.addCircleOfCor:
Add a Circle of Correlation to a PCA-like map
of correlation produced by
createFactorMap et alia.
addCircleOfCor(
  color = "darkorchid",
  alpha = 0.3,
  size = 1,
  center = c(0, 0),
  radius = 1,
  nPoints = 100
)
| color | ( | 
| alpha | ( | 
| size | ( | 
| center | ( | 
| radius | ( | 
| nPoints | ( | 
The map should should be first created by,
for example,
createFactorMap() (or equivalent functions from
PTCA4CATA), and then the circle
of correlation is added
(see example).
nothing
Herve Abdi
createFactorMap
## Not run: 
# Some PCA-like correlations
corXY <- matrix(c(.5,-.5, .1,.7, .8,.5, -.1,.9,  -.6,-.6),
               ncol = 2, byrow = TRUE )
# create a map of correlation
MapCor <- PTCA4CATA::createFactorMap(corXY,
         constraints = list(minx = -1, miny = -1,
                            maxx = 1 , maxy = 1) )
# Add a circle to the base Map
ggMapWithCircle <- MapCor$zeMap  + addCircleOfCor()
# To print the map with the circle:
# print(ggMapWithCircle)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.