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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.