Control Arrows
# Load pca
from pca import pca
# Initialize pca
model = pca(n_components=3)
# Load example data set
df = model.import_example(data='iris')
# Fit transform
results = model.fit_transform(df)
# Strenght of the loadings are shown in two colors (red=strong, blue=weak).
model.biplot(s=0)

# Change colors
model.biplot(s=0, arrowdict={'color_strong': 'r', 'color_weak': 'g'})

# The transparancy of the arrows are set on the loading value. You can also set it to a constant value.
model.biplot(s=0, arrowdict={'alpha': 0.8})

# Change text color
model.biplot(s=0, arrowdict={'color_text': 'k'})

# Change arrow color.
model.biplot(s=0, color_arrow='k')

# Set color arrow and color text
model.biplot(s=0, color_arrow='k', arrowdict={'color_text': 'g'})

# Default settings
model.biplot()

# Change the scale factor of the arrow. The scale_factor of 3 seems a little bit too much here ;)
model.biplot3d(arrowdict={'scale_factor': 3})
