How do I include subscripts with fviz_pca_var labels?

I have a PCA that I’m visualizing with fviz_pca_var and I want to include subscripts for some of my variables. How do I get these to display properly? Also, is there any easier way to flip the y-axis so the values are inverted? (I still want -1 to be on the left). df <- structure(list(`P[1]`… Read More How do I include subscripts with fviz_pca_var labels?

Error using missing values in Principal Components Analysis with missMDA

I have a dataset with missing values in one variable that I’m trying to perform a PCA on, however, I keep getting the same error message. # packages library(tidyverse) library(missMDA) # dataset df <- structure(list( A = c(39.64, 39.23, 38.89, 38.63, 38.44, 38.32, 38.27, 38.3, 38.4, 38.56, 38.79, 39.06, 39.36, 39.68, 40.01, 40.34, 40.68, 41.05,… Read More Error using missing values in Principal Components Analysis with missMDA

Specifying column number in Principal Component Analysis in R

I am carrying out PCA in R. Instead of carrying out PCA from Columns 7-30, I want to select Column number 4 and 15-30. How can I adjust the columns in the code clim_data <- read.csv("MergedCSV_43X47Y_CanESM.csv") str(clim_data) colSums(is.na(clim_data)) numerical_data <- clim_data[,7:30] head(numerical_data) data_normalized <- scale(numerical_data) head(data_normalized) corr_matrix <- cor(data_normalized) ggcorrplot(corr_matrix) >Solution : to select specific… Read More Specifying column number in Principal Component Analysis in R

What causes the "Argument expression expected" error in this Angular 13 app?

I am working on an e-commerce app who’s front-end is made in Angular 13. The below code is intended to sum the prices of the items in the cart: import { Component, OnInit } from ‘@angular/core’; @Component({ selector: ‘.app-top-cart’, templateUrl: ‘./top-cart.component.html’, styleUrls: [‘./top-cart.component.css’] }) export class TopCartComponent implements OnInit { cartItems: any = [ {… Read More What causes the "Argument expression expected" error in this Angular 13 app?