1,866 questions
2
votes
1
answer
53
views
How to set alpha by bivariate density and fill by z in geom_raster?
I make a heatplot with geom_raster, something like this:
mround <- function(x,base){base*round(x/base)} # round to nearest 5
df <- data.frame(x= mround(rnorm(10000, 100, 10), 5),
...
1
vote
1
answer
59
views
Change color of dot border inside plot
I have a table looking like this:
UMAP1 UMAP2 Tissue Color Shape Size Alpha
SRR10264719 -29.4889521358772 -8.66297910678254 Skeletal muscle #DB6443 15 2 0.3
SRR10264720 -28....
0
votes
3
answers
83
views
inputting ordered values from a list of dataframe with different row numbers into a list of dataframe with equal row numbers
I am stuck with this problem. Please note that I have edited the original question because I have forgotten to provide crucial details for solving this problem.
My sincere apologies for this mistake ...
0
votes
0
answers
28
views
Fill an Array in js file [duplicate]
i use this code to fill reviewArray, but it's not getting filled in the right position.
getSuccessOutput();
function getSuccessOutput() {
$.ajax({
type: "post",
url: '...
4
votes
2
answers
106
views
How to fill a barplot, not according to the occurences of an element in a dataset, but according to its value in another variable? See example
Imagine having this dataset:
Country Energy_Source Twh Tot
Italy Biofuel 24.5 100
Italy Nuclear 15.4 100
Italy Gas 40.1 100
Italy Hydro 20.0 100
France ...
0
votes
0
answers
31
views
How to fill an iframe input using robocorp with python
I was wondering if you can help me. My question is: How can I fill an input if it is loading in an iframe?
For example, on a normal page I have this
page.fill("#id","ABCD")
But ...
1
vote
1
answer
44
views
how to use openpyxl to do 'select' and 'fill down' like in an excel file
I am having a lot of success using openxpyxl to do many operations. I have a table of dates, numbers and formulas that I insert a new row within the table and enter some easy data (date, name, amount)...
0
votes
0
answers
43
views
The object.getOwnPropertyDescriptor or the _valueTracker don't work. How to emulate the user input in the react form with multiple inputs?
I am creating a Chrome extension to auto-fill react forms. There is a form with multiple lines in the page. Each line has selection and input and can be deleted with a button.
I used the following two ...
3
votes
1
answer
41
views
geom_histogram cluster values with same fill category together
I'm trying to create a histogram which uses one column in the data set for the fill colour and another column in the data set for the groups. Both of these are define within the aes(). Then I add a ...
0
votes
1
answer
62
views
Extract fill color information from PPT Table
In a PowerPoint presentation, I have a table where one column is filled with different colors. Is it possible to automate to identify/extract the RGB values or color of the fill in each cell?
Tried ...
0
votes
2
answers
30
views
Fill or carry LOCF up to a certain value [duplicate]
I have data frame df_have. I would like to create data frame df_want, where I retain the value of flag to fill in missing value until flag changes it value to a non-missing for each patient ID. I ...
1
vote
1
answer
85
views
How to colour area under the curve in a hypnogram?
I'm trying to make an hypnogram and add color to the wake and sleep stages, something like this:
This is an example of the data frame
df <- data.frame (
time = seq(1, 250),
state = c(rep ("AW&...
0
votes
0
answers
18
views
scale_fill_manual - color of missing levels are not shown in legend [duplicate]
scale_fill_manual - missing levels are not colored in legend
Running the examples at https://tidyverse.github.io/ggplot2-docs/reference/scale_manual.html I am wondering if the behaviour of ...
0
votes
0
answers
49
views
How to retrieve data from excel to postgres DB using python?
enter image description here
This is an image of my excel template, I need to retrieve data from it and fill my postgres table as shown in the picture, and the table code is:
CREATE TABLE public.test (...
1
vote
2
answers
86
views
adding additional fill variable in ggplot2
I have the following data and code:
#data
Congruency <- c("C", "C", "C", "C", "C", "C", "NC", "NC", "NC", &...
0
votes
1
answer
77
views
geom_ribbon conditional fill creating shapes that don't match data (ggplot2 r)
I am using ggplot2 to visualized model results.
I have a model results in the results object, a dataframe. My code to visualize it looks like the following:
results |>
mutate(Confidence = ...
5
votes
1
answer
916
views
GGplot Legend Showing Blank Fill for Missing Factor Level
I am trying to use ggplot to plot a frequency plot where the dropped values still show in the legend. I have been able to achieve this by setting drop = FALSE in scale_fill_manual, however the dropped ...
-1
votes
1
answer
18
views
Fill NA column with other variable by id if dectects a non-missing value a column R
I am trying to pass from something like this:
To this:
This is, filling the column seq with the values of m by id, after counter has a value different from missing
I tried with function fill from ...
0
votes
1
answer
85
views
How to draw filled letters (e.g. O) without write() in turtle
I created a code and easily got letters, but now I just understood that I don't know how to make them fill. I made only an E and an L and by this site user help G, but I don't understand how to make O ...
1
vote
1
answer
74
views
How to draw filled letters (e.g. OLEG) without write() in turtle
I created a code and easily got letters, but now I just understood that I don't know how to make them fill. I made only an E and an L, but I don't understand how to make O and G fill.
This is what I ...
1
vote
1
answer
158
views
How to fill rectangles in my PowerApps project?
I'm working on a project in PowerApps and I need help with one functionality. On one screen, I have a container containing 8 rectangles, below which there is a button. I want the rectangle to be ...
0
votes
1
answer
19
views
Is it possible to get a shaded fill in R or to overlap 2 identical barplots in order to represent 2 variables?
I'm a beginner.
I have this barplot which sums up all the sales per month. Colors are showing the cities. My concern is to shade somehow these colors in order to show the year too. I made 2 barplots ...
0
votes
0
answers
193
views
Open3d Triangle Mesh fill_holes() method leads to crash
I wanted to fill the holes in my triangle mesh with the fill_holes() function, after using the from_lagecy function. I have an array with 65 Pointclouds where I have to fix all of them:
...
0
votes
1
answer
415
views
Python: How can i input lines read from a text file into a variable
I'm currently working on a python script to develop a automatic fill form bot. Only doing 1 site until i get the process down. As of the moment i have 2 options. Option 1 is to input the client data ...
0
votes
0
answers
23
views
With the canvas, draw and fill a rectangle with a rectangular hole in it [duplicate]
With the HTML5 canvas, I want to draw a rectangle with a rectangular hole in it, and fill not the hole but the other shape. I understand that one way to do it is to draw one rectangle and then stroke ...
0
votes
0
answers
24
views
Chart.js coloring the shape in a chart
I have a chart I created with Chart.js. In this chart, I have four points and these points are connected and a quadrilateral is obtained and the inside is colored green. But in this way, the y-axis ...
0
votes
2
answers
57
views
Chart. js shape coloring
I have a chart I created with Chart.js. In this chart, I have four points and these points are connected and a quadrilateral is obtained and the inside is colored green. But in this way, the y-axis ...
2
votes
2
answers
49
views
R DPLYR Fill Down Values
I have df with ID, X1 and wish to create WANT, which adds ‘3’ to the next value when X1 == NA.
library(dplyr)
df <-
tibble(
ID = c(1, 1, 1, 1, 2, 2, 3, 3, 3),
X1 = c(5, NA, 11, NA, 7, NA,...
0
votes
1
answer
40
views
Ggplot2 fill legend labels not in correct order
I am creating the following graph with ggplot2. The problem is that all labels show in the chronological order except the last three. I cannot work around it. Does anyone see what causes the issue and ...
0
votes
0
answers
40
views
Fill in between two lines with csv data
I am trying to create a background for a plot to show a filled area representing mean values of several lines by creating a fill in between two lines (max and min values as shown by the grey area in ...
0
votes
0
answers
26
views
SQL - Fill timestamp gaps and split rows to monitor complete days
I have the following data set in a SQL DB:
enter image description here
And that's what I want to achieve:
enter image description here
This results in 4 tasks:
1. if an entry extends over one day, an ...
0
votes
0
answers
515
views
Unable to do ‘Fill’ action in an Input Field in Firefox browser when using JavaScript Playwright Cucumber framework
Issue Overview
I have been working on an automation project using Playwright JavaScript with the Cucumber framework. I've encountered an issue where I am unable to proceed with the "fill" ...
0
votes
1
answer
328
views
How to make this slider fill its container and centre it to the container
I made adjustments to this code for a slider and it's perfect but I want to place it in a code block on SquareSpace. I was hoping to have the slider fill the container of the code block and be centre ...
0
votes
0
answers
16
views
Filling lists based on larger list values
I have two pairs of linked lists, one pair larger than the other. How can I fill the smaller list based on the larger list values and position of those values?
For example:
list1 = [1,2,3,4,5,6,7,8,9,...
0
votes
1
answer
46
views
Stacked Bar Chart , spacing within each column (ggplot2)
I have figured out how to make a stacked bar plot with my data, but now the figure makes it look like the number of structures was the same for each type of structure. I do not think this is accurate, ...
0
votes
0
answers
90
views
Plotly: Fill between two lines based on a condition
I have created a Python dashboard for a school project. The code generates two graphs (the second of which is unimportant for the purpose of this question). The first one plots a line that represents ...
1
vote
0
answers
97
views
Ggplot: buggy fill and colour legends for shapes pch=21:25
I'm trying to make a scatterplot with dynamic variables for x, y, shape, shape fill, and shape colour (aka border/stroke), when using shape pch 21:25 (those shapes with fills and borders). Colour/fill ...
0
votes
0
answers
56
views
Horizontally multiple legend position ggplot2
I want to represent three factors (at 5, 2, and 3 levels). The DES factor is represented in the x-axis, while the temp is in fill (different color) and water is pattern.
I get a figure, but I don´t ...
0
votes
0
answers
33
views
Fill a blank cell with a color before save, but clear it when data is entered in VBA
I have code that prevents a user from saving a file if certain cells are empty. The code fills the necessary cells with a jarring red color that forces the user to enter data before attempting to save ...
0
votes
0
answers
32
views
How to set the same color of gradient in joyploy plot fill?
target results
As shown in the picture above, I want to reproduce a similar effect in the picture. The fill color of each plot is the same colormap that gradients from blue to red.
Attached is my code ...
0
votes
1
answer
103
views
how to use Arrays.toString directly in java (without Arrays. before it)
Imagine I make an array e.g. int[] a = new int[5], why I cannot use System.out.print(toString(a))? I imported the method by the way, import static java.util.Arrays.toString;
but I get compile error
I'...
0
votes
1
answer
442
views
Custom shape in ggplot (geom_point) - use inside fill with unicode (e.g., hearts)
This is a follow-up to this question (part 1): Custom shape in ggplot (geom_point)
Which provided a solution to produce custom ggplot2 shapes in the form of skulls 💀 (or hearts ❤):
library(ggplot2)
...
0
votes
1
answer
115
views
Find and fill input field using Selenium
I want to create a bot to fill the blank on site. But unfortunately it does not work; I mean does not see or I don't know what is its problem.
from selenium import webdriver
from selenium.webdriver....
0
votes
0
answers
141
views
Fluttermap: Is there any way to make a polygon fill as an image?
I'm new to flutter.
I want to make a mobile application where flags of countries will be shown as polygons.
That is, the boundaries of the polygons will be the boundaries of countries, and the country ...
0
votes
0
answers
42
views
How can I set the fill aesthetic using a character vector
This is a pretty straightforward question, I just can't figure out the correct syntax. I'm making several bar plots based on an element (column) of my dataframe:
ggplot(df) +
geom_col(aes(x=factor(...
0
votes
0
answers
31
views
SVG fill not changing, not sure how to resolve it with multiple layers and paths
Apologies, I've seen that this has been asked a few times, but I can't quite figure out how to do it with multiple paths.
This is my SVG, I'd like it to still be white, but on hover it'd be nice to be ...
0
votes
1
answer
141
views
change fill color of continuous bubbleplot ggplot
I want to change the colors of the bubbles in the plot
ggplot(sum_length,
aes(x=vb_width, y=slope, size = length)) +
geom_point(alpha=0.5)+
theme_classic() +
ylab("Slope category ...
1
vote
2
answers
1k
views
R GGplot histograms and density with multiple fill variables
I want to create a plot with three overlapping histograms (each with a different color and semi-transparent) with their density polygons overlaid on the same graph without having the histograms ...
0
votes
2
answers
77
views
How to stop text from wiping background color with NavigationStack?
New to swift and stuck at the starting line...
I am simply trying to fill the whole background of a page using gradient. I have seen this is possible using ContainerRelativeShape() so have tried and ...
1
vote
1
answer
46
views
Modifying the colors with commands scale_fill_manual() and scal_fill_discrete() on a ggplot2 histogram
My data frame (df) consists of two columns, one with random values (continuous measurements) and another with three levels (c1, c2, c3):
df <- data.frame(col1= round(rnorm(150),2),col2 = c(...