Most voted "plot" questions
Plot in certain languages (Octave, Matlab, R) is a function used to draw graphics, which can be in 2D or 3D.
Learn more…91 questions
Sort by count of
-
1
votes3
answers105
viewsChanging charts of a regression
I’m trying to modify the chart of the Tables of this regression that I’ve been around: x c(-0.0179316822180174, -0.00641604898349779, 0.0118829440361971, -0.00821159118344772, -0.0171607214317729,…
-
1
votes1
answer221
viewsValues in the chart axes in Rstudio
Hi, I’m new to R. I plotted the data I wanted, but no value came up. How to solve it? It’s little data. The data are as follows, filling only the fourth column (Avg.1). From now on I thank anyone…
-
1
votes0
answers76
viewsGraph does not appear on the mobile screen
In the development of an application, I am filling a chart as the end result of user data entries. The main point is that, as I will present in the following code, I have a FOR that will fill each…
-
1
votes1
answer42
viewsPython: I need to get the y coordinate given to x coordinate
Good afternoon! x = [0, 5] y = [2, 4] plt.Plot(x, y) plt.show() I get the following figure. How do I get the value of the y coordinate for the x coordinate equal to 2.5? Thank you.…
-
1
votes1
answer306
viewsHow to plot a curve to separate data?
I’m testing some things in the language and I came up with this question. I made a program that has a database that is divided into two groups (Group 1 and Group 2) and its elements are already…
-
1
votes1
answer1006
viewsHow to create a graph with two axes y with different scales in R?
I’m trying to plot a graph with 3 sets of data. " Precipitation" and "Evapotranspiration" have high values (from 5 to 580) so would use the same scale in Y (on the left side) for both plotted data…
-
1
votes1
answer400
viewsPlotting file . xls with matplotlib and openpyxl
Having the following content in my file . xls: Belo Horizonte - MG 2278.8 Porto Alegre - RS 1647.8 Recife - PE 2434.9 Rio de Janeiro - RJ 1653.6 Salvador - BA 2324.1 São Paulo - SP 2227.5 Total of…
-
1
votes1
answer612
viewsHow to break a line in the title of the graph into 2 lines using ggplot?
I need to break the title line of the chart so that it stays at the width of the chart itself. The reason is that the chart will be used in a grid.arrange() and in this way it will become narrow and…
-
1
votes1
answer54
viewsChange x scale to range from 0 to 100 but showing decimal variations
Hello, I need to plot the decimal variations on the x-axis and vary from 0 to 100 fevmt=c(91.9, 92.1, 92.3, 91.4, 91.8, 90.1, 91.8) a1 =c(91.9, 100) b1 =c(92.1, 100) c1 = c(92.3, 100) d1 =c (91.4,…
-
1
votes1
answer45
viewsHalf of boxplot appearing in ggplot2 function
I’m doing a boxplot using ggplot2 package, however, for some external reason, only half of the boxplot is being made for the "Control" and "Commercial IMD" treatments". See below that when doing the…
-
1
votes1
answer1640
viewsHow can I make two graphs in the same Python Plot in Jupyter Notebook?
I’m trying to create charts in Jupyter Notebook in Python for the first time using data from an excel file for my Master’s Thesis, because I don’t want to present the charts in Excel and want to do…
-
1
votes1
answer138
viewsCombine with grid.arrange two residue charts (lme vs. lm)
I’m trying to put in the same image, side by side, the residue graphs adjusted by the linear model and the mixed linear model. However, I consulted the following links below and still my error…
-
1
votes1
answer904
viewsHow to create bar graph using Dataframe.Plot?
I’m trying to chart a table comparing the rate of uneducated men to the rate of uneducated women. I have a csv file with this data and I’m trying to put men and women on the "x" line and the number…
-
1
votes1
answer37
viewsAdjusted regression line considering different factors in ggplot2
I’m trying to reproduce the graph below, where the internal lines are the adjusted regression lines: However, for some factor is not being plotted what should, ie, is being presented a single line,…
-
1
votes2
answers62
viewsMixed effects model residue plots using ggplot2
I am trying to perform the residue graph of the mixed effects model by means of the ggplot2 function. However, after performing a search I found some available functions but what seems to me is that…
-
1
votes1
answer65
viewshalf-normal waste graph Plots no ggplot2
I am trying to realize the graph presented below regarding the residues in the half-normal Plot in ggplot2. However, I am facing an error entitled Error: data must be a data frame, or other Object…
-
1
votes1
answer92
viewsOverlay graphics in ggplot2 considering adjusted lines
I am trying to superimpose two graphs made in ggplot2, in which the first contains the line adjusted by means of a polynomial model of degree 2 and the other contains the adjusted lines of a model…
-
1
votes1
answer53
views -
0
votes0
answers119
viewsHow to plot the graph of a complex equation in latex?
I need to create standard maps charts (https://en.wikipedia.org/wiki/Standard_map). How can I implement a chart like this below in latex?…
-
0
votes0
answers371
viewsPlot graphs - R
Does anyone know a library, in R, for plotting graphs with large amounts of vertices ( close to 3,000 vertices)?
-
0
votes1
answer1597
viewsPlot a graph of the loading and unloading of a capacitor in MATLAB
I need to create a program that shows through Plot the loading and unloading of a capacitor as shown below: There are 3 constants where the user needs to enter the values: C = capacitance; R =…
-
0
votes1
answer295
viewsHow to customize matplotlib Plots, in a more Clusterization-oriented way?
I am working with data analysis, I need to leave the data more distant from the clusters represented in some other way, as a different symbol or some stronger color, I analyzed in the documentation…
-
0
votes1
answer51
viewsHow to add or eliminate scatter points on a graph mechanically?
Hello, good morning! I would like to know a routine to add or eliminate scatter points on a graph in a "mechanical" way with the mouse click on the graph! I intend to work with some maps, to mark…
-
0
votes1
answer756
viewsconnect matplotlib points
My program plots independent points but I would like to connect the a_min's and a_max's. How can I do that? In this case, there would be two parallel lines. He’s filling up like this: '''…
-
0
votes1
answer182
viewsPlot function of igraph - (python)
I tried to use the igraph library for python in order to plot a graph, I used the very example of the documentation, but it didn’t work. Code used: import igraph from igraph import plot g =…
-
0
votes1
answer106
viewsPredict plot for adjusted Gamlss model
How do I make and plot the predict for this model Gamlss adjusted? My model is presented below. mod<- gamlss(cbind(nfr, nv-nfr)~tt+tr1+d2+d3+random(as.factor(p…
-
0
votes1
answer25
viewsHow to resolve an Error in Plot.new() : figure margins Too large, in R
Hello I’m trying to do this command: tsdiag(m1,gof.lag=20) Which was to hold 3 forks this way: but the following error appears: Error in Plot.new() figure margins Too large How could I solve?…
-
0
votes0
answers83
viewsProblem with the data acquisition time function provided by Arduino
I’m doing a Plot temperature vs Time via Arduino in a graphical interface. The program is crashing. Problem is in the function of time: # -*- coding: utf-8 -*- import matplotlib import…
-
0
votes1
answer73
viewsHow to plot a graph using a Function curve
I need to resolve a matter of an R course. But I don’t know if I did it correctly. Could you please help me? The question is this:: Question 2. Create a vector with the Cosine of Numbers between -10…
-
0
votes1
answer1078
viewsHow to break a list into two distinct lists to use in Gnuplot python?
A gnuplot online feature allows you to place your data in two columns separated by space, and it understands how the axes "x" and "y" http://gnuplot.respawned.com/ I am trying to use gnuplot python.…
-
0
votes1
answer466
viewsR histogram with all apparent breaks, hist() function
I have a database with over 8000 lines and would like to create a histogram, but it does not show the bar in all lower frequency classes, in the case of the last classes (Image). I understand that…
-
0
votes0
answers1085
viewsHow to plot or overlay graphs of a function with two variables using matplotlib?
I’m having trouble finding the right graph on my Plot, I’m modeling two physics equations of two variables, I believe the problem is because I’m not going through the graph correctly with my while,…
-
0
votes1
answer551
viewsHow to place the value for the y-axis next to the chart marker?
Hello, I would like the figures for the y-axis to appear alongside the points on the graph. Thanks in advance! plt.figure(figsize = (16,8)) plt.xticks(rotation = 90) sns.lineplot(x =…
-
0
votes1
answer54
viewsPlot of the CL50 Curve in R using ggplot2 with estimates obtained in Stan
I am trying to make the following graph below in ggplot2. Note that I am adjusting a logistic regression model under the Bayesian approach using the Stan package. dice:…
-
0
votes1
answer84
viewsAdjusted line of the binomial regression model made in ggplot2
I am trying to adjust the line of the binomial model in the graph of observations, however, one observes a problem in the code. The data is below:…
-
0
votes1
answer69
viewsPlot half-normal chart for mixed models adjusted with nlme package
I’m trying to realize the Plot half-normal chart for a mixed effects model adjusted through function lme package nlme. Dice:…
-
0
votes1
answer33
viewsHow to create bar graph with 2 different y axes and the same x axis?
I’m trying to plot a bar graph with 2 different y axes and the same x-axis. The closest I’ve come to success with the following code: fig = plt.figure() # Create matplotlib figure ax =…
-
-1
votes1
answer228
viewsPlotting circles in different planes
I need to plot circles in the plans Zy and zx, but I only get in the plane xy, because when changing the variables x, y and z, forgive the shape of a heart. How can I fix this? import numpy as np…
-
-2
votes1
answer226
viewsHow to break caption text in R
I need to plot a legend that has a very large text. But the problem is that when I export the R figure, part of the text is outside the Plot area. I wonder if there is a way I break the text of the…
-
-2
votes1
answer32
viewsHow to use 2-d numpy array with interactive panel floatslider for a python image Plot?
Using holloviews and panel. How to create a function that takes as arguments an np.array (2d, an array) and a "value cut". Return the 2d array plotted as image? Being what the argument "value cut"…
-
-2
votes1
answer55
viewsHow to plot Pcoa/MDS?
I’m trying to plot Pcoa, but the chart is coming out pretty slick. Before the Pcoa I did PERMANOVA using data of importance of 10 species of coastal vegetation as a function of 5 different…