37,804 questions
Advice
1
vote
1
replies
39
views
2 dimensional version of "pretty" in R
In R it is generally convenient to use a function like "pretty" when deciding intervals to plot in a graph that are useful and readable to the general audience. In R if you are producing a ...
0
votes
0
answers
22
views
Plot limited domain for equation in Geogebra
In GeoGebra is there a method to plot only a portion of a curve defined by an equation? In other words if I want to plot only the first quadrant of the equation of a circle x^2+y^2=1, is there a way ...
Advice
0
votes
0
replies
37
views
Averaging results for sound intensity
I have 8 files all 13 minutes long for measuring sound intensity. I need to calculate the average every 5 seconds for each file, any idea how to do this in a fast or efficient manner?
I have no idea ...
Best practices
0
votes
1
replies
59
views
How do I implement a cylindrical grid for a 3D plot?
I want to plot a 3D curve showing the X-Y grid in polar coordinates. Here's a sketch
and my script that generated it:
from math import cos, cosh, floor, pi, sin, sinh
import matplotlib.pyplot as ...
2
votes
1
answer
48
views
R Meta analysis adjust x-scale and ticks
I am trying to create a forest plot for some meta-analyses I am conducting. I have been able to create the forest plot but I have been unable to use xlim() to adjust the x-axis scale, nor have I been ...
Tooling
0
votes
0
replies
32
views
Creating custom 3D plots with annotations confined to planes
I want to create a 3d plot that only shows data and annotations in the xy, xz, and yz planes. Especially, annotations should be fixed to these planes as well, and should not rotate out of them when ...
3
votes
0
answers
101
views
How to plot contour onto the 'walls' of a 3D histogram Python
For the context, I want to represent spatial-temporal evolution of a heatwave event.
In this example, a heatwave is defined when the daily temperature is higher than the temperature threshold and the ...
4
votes
1
answer
50
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 ...
1
vote
1
answer
56
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
139
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
40
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
92
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
121
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
45
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
164
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, ...