I have a problem with scale of legend, because text of legend crosses borders of plot. Any idea, how can I fix it? Split or resize? Data cleaning: F ...
I have a problem with scale of legend, because text of legend crosses borders of plot. Any idea, how can I fix it? Split or resize? Data cleaning: F ...
I am recording the data for 3 counters and have the choice of using either of following schema: Date|Sensor|Value Date|Sensor1Value|Sensor2Value|Sen ...
If I have two datasets, and want to plot them as points with a line through them. I can very simply do that with code like this. Which results in t ...
This code is part of other big code that generate a web map with folium module: in the line of the shapefile, I try to described the shapefile poly ...
I have the legend that matplotlib created from the data, but I would like to add an extra legend with some other information I need to include. How ca ...
I have a scatterplot figure with subplots generated using a for loop. Within the figure, I am trying to create a single legend but each time a subplot ...
I am trying to make a boxplot of 2 different beta coefficients (returned from a model) from two groups of categories and I want to overlay the "true p ...
I want the legend to only show the black point for Proporció sobre la despesa total, without the purple background. Here a sample of my dataset: T ...
library(ggplot2) ggplot(mtcars) + aes(x = mpg, y = disp, size = cyl) + geom_point() + geom_smooth(level = 0.99, method = "loess") As you ...
I am attempting to use the following code to split my long line of text into multiple lines in the legend of a pie chart. The current code creates a l ...
I have a plot made with ggplot where the legends adds extra black points to all the other legends (see image). I'd like to get rid of those extra ...
I am quite new to R in general and currently struggling with a specific plot I want to create. Preferably I would like to group my boxplots (2 per Ar ...
Suppose the below code is used to create my plot: x = np.linspace(0, 2 * np.pi, 400) y = np.sin(x ** 2) fig, axs = plt.subplots(2, 2) axs[0, 0].plot ...
I have a ggplot with two y-axes by the sec.axis command, and I've been struggling with handling legends in these situations. The code: library(ggplo ...
I am trying to plot some data from a csv file. I used the Pandas to load the csv file. I am using sns.lineplot() to plot the lines. But one of the leg ...
I've made two bar plot (one for women, one for men that represent my two data set) for each age groupe (variable 1) regarding their relational status ...
I have an array of integers that serve as identification for various dots on a graph. When I make the plot, the entire array of numbers is shown in ...
Is there a way to add a legend with the count to give density of each row? Or an easier way to show it? Thanks very much! Couldn't even get a leg ...
I am using R to generate a Quarto document with figures and tables. This document should be rendered to create both an HTML and a PDF file. Most of it ...
I wrote a script to automate a line plot, and it works well on my machine when I run the script. But when someone else tries running the same script, ...