491 questions
1 vote
0 answers
32 views
Failed to change the debug level for Log4j 2.17.1 using log4j2.xml
I am using log4j2.17.1. I am trying to set the log level to info through a configuration file(log4j2.xml). I see from the log trace that it is reading from the configuration file but somehow it still ...
0 votes
2 answers
109 views
How to add intervals to the x axis (factor levels) and stat bars in R ggplot
I create this plot in R: I want to do 2 things: Add more factor levels to the x axis (intervals of 12hrs to match other data), I try with scale_x_continuous(breaks = seq(0, 72, by = 12), labels = ...
0 votes
0 answers
70 views
How to manage "child objects" at the "level" when creating games in Unity?
I'm going to make a game with Unity.(I'm new to programming) Within each level of Unity, there are the borders, arrows, which are GameObjects. What is the most efficient C# coding for managing these? ...
1 vote
2 answers
59 views
How do I use levels and factors to fit a dataset into the levels I've made and create a histogram of the frequency within the levels?
I am working paleo data in which I have pulled information from the database on a genus level and have found the unique labels of genera within a certain dataset and their respective age ranges. Each ...
0 votes
0 answers
57 views
Hide Levels From Hierarch - Power BI
I have the below hiearchy. As you can see in the picture, Exmaple 2 does not have Level 2 and in order to complete the hiearchy i have write the word Dummy. The hiearchy works perectly however i m ...
0 votes
1 answer
59 views
Reorder legend levels in CalendR
Using CalendR to plot fishing days for boats. How do you go about reordering legend levels e.g. boat names first then public holidays last? Load packages, create events & plot calander: ## load ...
1 vote
4 answers
97 views
Add within variable by year in SAS
I am working with some state-level data and want to create a collective "USA" level within that state data. I have about 10 years of data for each state and would like to keep that format ...
0 votes
1 answer
70 views
Factor() to order data not working after specifying separate scale for each group
I am ultimately trying to generate to a plot that includes a different scale for each of three groups. I also need those groups (each "sample") to be clustered together on the plot which is ...
1 vote
2 answers
72 views
Replace specific levels of a row with NA, based on conditions across ALL factor columns of a data frame
I have a large data frame, df_f, with different levels across multiple column (5 columns in this example): c1 <- as.factor(c("NA", "1.1_mif", "NA", "NA", &...
1 vote
1 answer
49 views
R stacked bar plot with ordered columns and column elements
I am trying to build a stacked bar plot, where bars "Company" are ordered by "Company_value", and elements of each bar "Investor" are ordered by "Investor_quota"...
0 votes
0 answers
71 views
Maintaining Factor Order in ggplot
I am attempting to combine two data sets and chart types into a single ggplot. I want to plot the main data in a line/connected dot plot (two observations of the same kind within each of 5 categories)...
1 vote
1 answer
292 views
Keeping unused levels in ggplot2 bar plot does not work properly
R version 4.3.1 library(ggplot2) version 3.4.2 I want to use ggplot2 bar charts to display the percentage frequency of a particular concentration class. I have five concentration classes (=c1 with the ...
0 votes
0 answers
62 views
Nesting one factor within another in ggplot figures
I have two factors in my dataset (LocationTreatment[WebbHardRelease, WebbSoftRelease, SRSHardRelease, and SRSSoftRelease] and Location [Webb, SRS]) that I want to display simultaneously. I would like ...
0 votes
0 answers
44 views
Summarizing factor counts by other variables in R
I'm attempting to summarize the number of observations of levels in a factor variable by other variables in the same dataset. We are running a clinical training study where patients and controls ...
1 vote
2 answers
980 views
reorder factor levels manually using indices with tidyverse
I have a data.frame which contains a factor variable at the beginning. I would like to first change the order of the factor levels, and then sort the data.frame to be ordered by those factor levels ...