Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

When publishing my R visual doesn't look same as Desktop

Hello, i am trying to publish my PCA's R visual.  Please i am lost

This is what i see in the desktop part 

prod1.PNG

 

 

 

 

 

And this is what i see online ..... :

prod2.PNG

 

 

 

 

not the same type of graphs..... 

 

my code looks like this 

library(FactoMineR)
library(factoextra)
res_pca =PCA(dataset[,1:2], scale.unit = TRUE);
fviz_pca_biplot(res_pca, repel = TRUE,pointsize=1,labelsize=3,label="var",
                col.var = "black"
                col.ind = "red"  
)
 
thanks
1 ACCEPTED SOLUTION
Anonymous
Not applicable

I found the solution ... just add false to the first line which is also plotting something. In the desktop only the second line is displayed but when publishing i don't know why the first line is considered.

res_pca =PCA(dataset[,1:2], scale.unit = TRUE, graph=FALSE);
fviz_pca_biplot(res_pcarepel = TRUE,pointsize=1,labelsize=3,label="var",
                col.var = "black"
                col.ind = "red"  
)

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I found the solution ... just add false to the first line which is also plotting something. In the desktop only the second line is displayed but when publishing i don't know why the first line is considered.

res_pca =PCA(dataset[,1:2], scale.unit = TRUE, graph=FALSE);
fviz_pca_biplot(res_pcarepel = TRUE,pointsize=1,labelsize=3,label="var",
                col.var = "black"
                col.ind = "red"  
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors