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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors