Has anyone here ever done PCA plot for gene expression data using R studio?

I am struggling to plot PCA for my gene expression data, which has row 1 as the gene name and other 10 rows with different sample types. All the example I see has an extra row with different subtypes and they use that to group it however, my dataset doesn’t have that.

I have attached my table below for your reference.

enter image description here

If someone could please please help me with the R code, that will be very much appreciated.

I have tried various commands like ggplot and ggfortify.

Read more here: Source link