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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.