37,810 questions
3
votes
1
answer
33
views
How do I remove the ott number from the end of the species names in my rotl phylogeny plot?
Using the rotl package, I have created a phylogeny plot based on a list of species in a dataframe.
When I go to plot the phylogeny, the species name is shown (e.g. Anas platyrhynchos), but with an ...
-9
votes
0
answers
58
views
Colourful artifacts in browsers and plotting libraries [closed]
I've been experiencing colourful artifacts on browsers and plotting software for a few years but exclusively on Windows 7 both on Intel and AMD GPUs.
Why is it happening and how do I fix it?
Here are ...
1
vote
1
answer
51
views
python Plot Swaps Colours in Subplot — How to make one colour stick to one data set?
I am trying to plot some data from a Markov Chain Monte Carlo run, using getDist, which (I assume) uses matplotlib under the hood for plotting. There is no error message or anything, and it produces a ...
Tooling
0
votes
7
replies
136
views
Visualizing a 3D table or spreadsheet in R
I want to visualize a 3D data structure in a 3D table or spreadsheet in R. Much like a 2D spreadsheet, for example in Excel, but with three-dimensional cells. Here is a rough sketch of what I want to ...
1
vote
1
answer
39
views
Use a recorded plot for officer
To export a base R plot with officer, you have to wrap its code into plt_instr:
doc <- read_docx()
p <- plot_instr(
code = {
barplot(1:5, col = 2:6)
}
)
doc <- body_add_plot(...
-6
votes
1
answer
90
views
Print plot wrapped into officer's plot_instr
Exporting a base R plot into a Word document using the officer package requires wrapping the plot code with the plot_instr function:
library(officer)
p <- plot_instr(
code = {
barplot(1:5, ...
4
votes
1
answer
118
views
Tick direction of 3D plot in Matplotlib
In Matplolib, it is possible to change the direction of the tick of 2D plots with tick_params parameters
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
fig ...
Tooling
0
votes
1
replies
39
views
Real-time interactive plotting options
I have a C++ data processing program. I want to view a live plot of a stream of data that is being produced in the program, for debugging purposes. I'm not looking for a production-ready plotting ...
1
vote
2
answers
160
views
Customizing label format in facet nested plots with ggplot2
I am trying to create a series of plots using ggplot2 in R, and I want to customize the labels in the facet nested plots, particularly to include subscripts for the ICC labels. Below is my attempt, ...
2
votes
2
answers
116
views
How to change x-axis tick labels when plotting decomposition in R?
I am using the stR package to decompose an msts time series.
When I call:
library(stR)
library(forecast)
msts_spain <- msts(
spain_daily$Daily_Load,
seasonal.periods = c(7, 365.25),
start = ...
0
votes
1
answer
118
views
Build forest plot for estimate comparison of multiple models using ggplot2. How to add text of CI?
I am trying to create a forest plot to compare estimates of different models.
Tho goal is to plot all the estimates of the same predictor for the different models so they are comparable.
For this I ...
0
votes
0
answers
33
views
dynamic animation in paraview
I need to animate the movement of a cylinder in space. I have the x, y, and z coordinates as a function of time in a CSV file. Since it's very large, I can't create the animation manually. Is there a ...
0
votes
0
answers
85
views
Creating Estimation Plots in R with multiple variables
I have a mixed model that includes three different variables: Treatment, Stimulation, and DRG, as well as a random effect with DRG nested under a group ((1|Group/DRG)). I am looking to assess how each ...
1
vote
1
answer
76
views
How to create a stacked coefficients plot for multiple linear models in R?
I'm attempting to create a coefficient plot for multiple linear models using ggplot2 in R, but I'm facing an issue with overlapping points and error bars when displaying the estimates.
I've written a ...
0
votes
1
answer
103
views
stat_regline_equation() doesn't match stat_smooth() line
I'm getting an odd problem where I've attempted to plot a scatter graph and fit a quadratic regression line to it. I used stat_smooth() to make the line, and stat_regline_equation() to print the ...