Graph parameters font size in TeeChart version 4.2022.7.14 - graph

Lately, we upgraded the TeeChart version we are using in our product from TeeChart version 4.1.2012.9282 to version 4.2022.7.14 and it seems like the font size is a bit bigger in the newer version.
Using the old version, the number of parameters that fit in one graph view is more than the number of parameters that fit the same graph using the new TeeChart version.
Is there a change regarding the font size between the versions?
Is there a way to adjust the font size?
We didn't change anything in our code other than replacing the TeeChart DLLs with the newer version and we are trying to understand why we are getting fewer parameters now in the graph and how we can fix it so we will see all the parameters the same as we got when using the old TeeChart version
After further investigation, it seems that the font size is the same but the gaps between the graph parameters are smaller in the newer version.
Is there a way to decrease the gaps between the graph parameters so more parameters will fit in the graph view?

Related

Why are my plots not appearing on a shiny app using rmarkdown and flexdashboard?

When I first run my app (locally through RStudio or hosted on shinyapps.io), most of the times the plots show just fine, but disappear when I reload the page or resize the window. There are also times when the plots don’t even show on start and I have to rerun the app multiple times to make them appear.
My co-dev tried the same on his computer, with similarly inconsistent results.
Things I’ve tried:
Using plotly instead of ggplot2.
Limiting plot size to, say, 300x300 ou 10x10 px to check if it’s not a performance problem due to the size of the PNGs shiny renders as plots.
Using rmarkdown::render_delayed so shiny wouldn’t have to load all plots at once.
Those made no difference.
Could someone shed a light on the issue? Does anyone else have problems with plots on flexdashboard?
You can check a minimum example of the problem on https://ecology-app-test.shinyapps.io/minimum_example/ and the code on https://github.com/NHohl/ShinyEcology/blob/master/Minimum_Example.Rmd
Please try to load multiple times to see if/when the plots fail to show.
I have a more complete version that doesn’t use flexdashboards and works just fine (but the layout is a mess): https://nathalia--hohl.shinyapps.io/ecologia-interativa/
The package versions I’m using:
R v. 4.2.0
Rstudio v. 2022.02.1
rmarkdown v. 2.14
shiny v. 1.7.1
flexdashboards v. 0.5.2
ggplot2 v. 3.3.6
plotly v. 4.10.0

Change plot window size in Julia notebook

I am using Julia notebook and making plots using basic Plots package.
A plot looks good, except its entire size.
I can change the plot size and font size of labels individually. But it becomes less readable unless I change the font size and line width for every component.
So is there a way to change the size of a plot as a whole? I also hope I can change it by default.
To answer your original question in the title, you can change the size of the Plot Window by specifying the size attribute as you already are in your code. See here: http://docs.juliaplots.org/latest/basics/ for more details.
As pointed out by Rashid, you can use the scalefontsize function to scale the font size. You can also scale the thickness by setting the thickness_scaling attribute, see here for more details: http://docs.juliaplots.org/latest/generated/attributes_plot/
To be clear, there is not currently a unified way to scale a plot in the way you are looking for it right now, it has to be done manually (though it would be great to have this unified scaling). I opened a feature request for this here: https://github.com/JuliaPlots/Plots.jl/issues/3153

How to plot a large number of vbar in a Bokeh figure

Hi I am trying to modify the example code here
https://docs.bokeh.org/en/latest/docs/gallery/bar_mixed.html
I removed the toolbar_location=None so that the Bokeh toolbar can show, also I made factors array very large.
I would like to see a figure that I can pan/scroll to view more data rather than it is doing right now-congested all the bars in the fixed width.
How to do that?
As of version 0.12.16 Bokeh only supports initially showing all the factors. There is no mechanism to show only some subset. You can open a GitHub issue if you would like to discuss adding this as a feature.

Shiny R: Large differences in ggplot2 plot annotation between unpublished (RStudio preview) and published browser version

I have a fairly in depth set of numerical results being displayed in tables and plots using R/shiny and published online through the teams xxx.shinyapps.io website system.
This has worked fantastically well but I have found that the RStudio preview of my ggplot2 plots to be vastly different to the published versions. In particular, given a set width, height and resolution, the axis text, main text and plotting character annotations are much smaller in the preview compared to the published version. This has made it a nightmare to aesthetically hone these plots to what I want. I have played around with renderPlot() and plotMap() settings but to no avail.
I am using R 3.2.3 in RStudio 0.99.879 with shiny 0.13.2 and ggplot 2.1.0. Has anyone encountered something similar in their shiny/ggplot2 travels?

Rstudio: how to control default point size in plots?

Is there an Rstudio-specific way to specify the default font size? Since Rstudio has other panels that use up space, I'd like to have a smaller font size than I would have for other ways of using R.
Go to Tools | Options | Global Options. There you can set the font. As far I can tell this persists between sessions.
Also see here.
RE #Dank's note: sorry, I see now that you mentioned plots in the question.
I think this cannot be controlled globally in RStudio, but depends on the specific graphics package you are using. So using plot(...) in base R you would use:
par(ps=10) # default starts out at 12
This sets the default point size to 8 points until you use par(...) again.
If you are using ggplot, see this link.
Hope this helps.
You may use teh parameter cex , for example
cex=0.7
it decreases the font relatively to the default font.

Resources