Skip to main content

Questions tagged [plot]

The graphical representation of a mathematical function or a set of data. There are different kinds of plots, such as line plots, bar plots, or scatter plots.

plot
0 votes
0 answers
5 views

Can I weight my branches in a decision tree by their variable importance with rpart?

I have a decision tree model made with rpart of the form tree_model <-rpart(y~x1+x2, data = df). I can prune and plot the tree as well as the variable importance with the following code: `best <-...
Gabe Runte's user avatar
0 votes
0 answers
6 views

Difficulty Plotting individual points in Python Spyder in a simple ecosystem

I am writing a project in Python Spyder on my Mac. The project is an ecosystem in which there is grass, sheep, wolves. With each iteration The grass grows, sheep eat grass, some die of starvation, ...
Jon's user avatar
  • 21
0 votes
0 answers
13 views

plot many signals together in python

I am trying to plot many signals (196) from a multielectrode dataset (https://zenodo.org/records/1411883). I want to plot something cool to see all registers together. I want to get something similar ...
GGChe's user avatar
  • 13
0 votes
0 answers
14 views

Adjusting colormaps for geoplotting

I draw some geoplots using cartopy. Using Two Slope Normalisation and "RdBu_r" colormap to plot air temperature field. color_map = 'RdBu_r' fig = plt.figure(figsize=(16, 12)) ax = plt.axes(...
Outlaw's user avatar
  • 337
0 votes
0 answers
9 views

Plotting def function from research paper leads to errors

I am trying to plot this complex def function from a research paper that I read for a project and I keep getting that the map function is not iterable. When I run the code by itself, it's fine, but ...
Joshua Mallay's user avatar
1 vote
1 answer
75 views

How to put infinity and -infinity on a graph with plot

In the attached image I want to replace -1 by -Inf and 3 by Inf. This is the code: F <- function(x) { f <- NULL f[x < 0] <- 0 f[x >= 0 & x < 1] <- 0.4*x[x >= 0 & ...
Amelia's user avatar
  • 165
0 votes
1 answer
33 views

Plot gets shrunk off to the side when adding a scatterplot on top of the violin plot

I want to create a double violin plot with custom markers for each thing. So far, I have successfully been able to create the violin plot However, when I add the scatter of the various markers on top ...
Zedonkay's user avatar
0 votes
1 answer
16 views

Subscript title of figure which contain variable in matplotlib [duplicate]

I want to write title in python figure, which contain variable n=100. I want to write as $t_n=0.1$ (n is subscript). I try as follows: import matplotlib.pyplot as plt n=100 plt.figure() plt.title(f'$...
Ongky Denny Wijaya's user avatar
-2 votes
0 answers
30 views

Build plot of model regression with data manually in R [closed]

As part of an exercise, I am trying to manually create plots of two multivariate regressions I ran, i.e., I want to do what plot_model() in R does but manually. My data looks like this: Resp_var ...
Teresa's user avatar
  • 39
0 votes
1 answer
32 views

Ignore text values from excel table while plotting data

I want to plot a table that has numerical and string values in it. I would like to generate a PDF but to professionally display it, I want all my string values (NM, N/A) as is without having the "...
Josue Criollo's user avatar
0 votes
0 answers
13 views

I am try to plot a circle with a condition /// (var) with (if) statement

// Plot circles based on conditions var plot Shape = na if (array.sum(above200) >= 3 and close > sma1m) Shape := shape.circle Colour := color.new(color.green, 60) if (array.sum(below200)...
Jim Cruz's user avatar
1 vote
1 answer
31 views

Error when ploting the original date with the predictions of the best models using curve()

I'm trying to plot the original date with the predictions of the best models using curve() because I'm working with polynomial models, but I keep getting this error: Error in curve(predict(best_models\...
Andreia Raposo's user avatar
0 votes
0 answers
21 views

Interaction Matrix Plot in R [closed]

I am pretty inexperienced with r but I need to make figures for my dissertation. I ran a generalized linear model assessing multiple interaction effects between diagnostic group (4 categories) and ...
Elise Taverna's user avatar
0 votes
0 answers
23 views

Horizontal Angle Transmission in Ray Tracing Program - MatLab

I am working on a simulation of underwater sound propagation in MatLab. Currently, the program works in 2D, however, I am trying to transition it into 3D. Without just copying all 100+ lines of the ...
Chromozone's user avatar
0 votes
0 answers
14 views

How do I make a graph to model the trend of retail sales, and also extrapolate/predict the trend for future years?

This is the data sheet I want to use - https://www.ons.gov.uk/businessindustryandtrade/retailindustry/datasets/retailsalesindexreferencetables. Can someone tell me what I can use to put the data (...
pxkaa's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
2525