Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enormous font size 3d-plots in shiny #7

Open
Berecht opened this issue Feb 12, 2015 · 2 comments
Open

Enormous font size 3d-plots in shiny #7

Berecht opened this issue Feb 12, 2015 · 2 comments

Comments

@Berecht
Copy link

Berecht commented Feb 12, 2015

I have a problem with the font size of the, axes, point names, labels of the 3dplots im running in Shiny. The plots are behaving well. Only the font size of all the names are huge.

In all the 3d plot functions this problem is appearing.(scatter3d,plot3d,points3d, scatterplot3d)

Tried of lot of codes like cex.... and size...., anyone?

Im using the following code

UI:

shinyUI(navbarPage("Name",

tabPanel("|",
mainPanel( ))),

navbarMenu("Name",
tabPanel("Name",
sidebarLayout(
sidebarPanel(
tags$head(
tags$style(type="text/css", "select { width: 310px; }"),
tags$style(type="text/css", "textarea { max-width: 300px; }"),
tags$style(type="text/css", ".jslider { max-width: 300px; }"),
tags$style(type='text/css', ".well { max-width: 300px; }"),
tags$style(type='text/css', ".span4 { max-width: 300px; }")
),

 selectInput('dataset', 'Choose dataset', "Dataset1"),
 actionButton("goButton_data", "Scores!"),
 actionButton("goButton_Plot", "Plot!")
 ),
mainPanel(webGLOutput(outputId = "PCA_plot")
 )
)

)
)
)
)

Server:

shinyServer(function(input, output, session) {

output$PCA_plot <- renderWebGL({
points3d(data[,1], data[,2], data[,3])
axes3d()
text3d(data, texts=rownames(data))

})
})

image

@irvinalcaraz
Copy link

I had a similar problem not too long ago. I ended up adding the statement par3d(cex=.6) before any other graphing statements to fix this issue.

@Berecht
Copy link
Author

Berecht commented Mar 6, 2015

Thanks, alot!

Still the font/font-size is really ugly, but it worked.

Please react on my stackoverflow issue: (if u are on stackoverflow)
http://stackoverflow.com/questions/28495718/changing-text-size-of-3d-plot-r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants