All Questions
50 questions
0
votes
1
answer
65
views
Problem with settings scale breaks with ggplot2 in R
I'd like to make a line plot for longitudinal data in a design with two groups.
Since the group means range from 30-43 I want my plot to start at 28.
Nevertheless, I want the scale of the y-axis to ...
0
votes
0
answers
34
views
In a Python plotly bar chart, can I toggle discrete x-axis items in addition to a legend?
I have a plot like this that shows 'Metrics' across different 'Regions':
I can filter regions by clicking on the legend, and I can switch to showing individual metrics using the dropdown menu.
What I ...
0
votes
0
answers
110
views
how to make funnel in python that branches off?
enter image description hereHow do I make a funnel that branches off into multiple branches and effectively visualize this?
I have tried ploty but the functionality doesn't support this.
For example, ...
0
votes
1
answer
174
views
How to overlay circles with a bar chart on Python
I am making a graph in python, and want to be able to have a circle where the median of each bar graph data point is. Right now the median of one group is under the variable medf
import numpy as np
...
0
votes
0
answers
63
views
Default Legend does not fit in R Plot margins
I have searched so many techniques to solve it, but could not find the solution. Dataframe is the below:
name n ...
0
votes
1
answer
3k
views
after mapping the color in geom_jitter (ggplot2), how can I change the colors? Also, would love adding a smooth line
First thing I'd love your help with is how to change the default jitter colors - would love for Cold to be blue as it is, Average black, and High red. Couldn't find a proper line of code to do that.
...
2
votes
1
answer
280
views
pairs() how to give different labels a different font style?
In a correlogram created by pairs(), I want the first, second, and fifth label in regular font (font.label=1); the third cursive (font.label=3); the forth and sixth label in bold font (font.label=4). ...
0
votes
1
answer
273
views
Matplotlib cycler doesn't work with hatches
Given the following example
%matplotlib notebook
import matplotlib.pyplot as plt
from cycler import cycler
bar_cycler = (cycler(color=["#E69F00", "#56B4E9"]) +
...
0
votes
0
answers
43
views
Plotting coefficients in r
I have this LaTex table formatted from an output of OxMetrics:
\begin{document}
\begin{tabularx}{\textwidth}{@{} L*{7}{c} @{}}
\toprule
& \multicolumn{6}{c}{Dependent variables} \\
\cmidrule(l){...
-1
votes
1
answer
664
views
How to create publication quality growth curve figures (SAS or SPSS)
I am using SAS and SPSS for a growth curve analysis and I would like to create publication quality growth curves. Below is an example of SAS code for one of my interaction models and coresponding ...
0
votes
2
answers
1k
views
Creating a legend with shapes using ggplot2
I have created the following code for a graph in which four fitted lines and corresponding points are plotted. I have problems with the legend. For some reason I cannot find a way to assign the ...
0
votes
1
answer
686
views
Change values of x-axis in matplotlib
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax1 = fig.add_axes([0, 0, 1, 1])
input = np.arange(11,21,1)
sin = np.sin(input)
ax1.plot(sin)
plt.show()
I have the above code ...
2
votes
1
answer
61
views
R: Customizing Scatterplots
I am using the R programming language. I am trying to follow the answer posted in this previous stackoverflow post (scatterplot3d: regression plane with residuals) and add a "plane" to a ...
0
votes
1
answer
148
views
Automatically Stop Legend from getting Cropped by Plots (R)
I am working with the R programming language. I generated the following data:
credibility_scoree = rnorm(100, 1, 0.3)
average_recorded_height_in_study = rnorm(100, 17,3)
my_data = data.frame(...
1
vote
1
answer
388
views
Understanding the "cut" function in R
I tried making the following histogram in R (randomly select 10% of all rows and color them red):
a = rnorm(100000,60000,1000)
b = a
c = data.frame(a,b)
color <- c("black", "red&...