r - Remove factors from boxplot that have no data -
I have a data frame with two factors: Peel - either "standard" or "delay" and wafer - wafer But what I want as a factor:
** peel ** ** wafer ** Standard 122 standard 123 delay 124 delay 125
(Sorry) I'm trying to post the actual data, but it appears that it has come out in a foolless format)
When I press my data box for a variable against both factors I get the difference on the X axis, where there is no data:
boxplot (von.fwd ~ wafer * peel, data = df, las = 2)
I have tried posting an image but apparently I need 10 to do this reputation
The data is unavailable because it does not exist. I do not want it to plot the difference. I have seen the code in the Is there no way to say that there is no data, Do not conspirate those factors where many thanks Pete droplevel code, but I do not want to leave all my factors, only some combination of factors
Peel ERF Wafer Device Width Length Von.fwd Vth.fwd STS.fwd On.Off.fwd Ioff.fwd Von.rev Vth.rev STS.rev On.Off.rev 1 Standard 482 2618 06.18A 1500 3-0.0156 2.5960 0.2382 4,570,000 1.82e-11 0,8750 3,2682 03772 894000 2 Standards 482 2618 06.18B 15003 0,2750 1,4167 0,2203 1860000 8.67e-12 0,9688 2,0433 0,3016 2780 00 3 Standard 482 2618 06.19A 1500 3 0,1907 2,7658 02460 7410000 1.01e-11 1,0938 3,4233 0,3696 1360000 4 Standard 482 2618 06.19B 1500 3 -29060 2,9606 0, 7441 1570000 3.00e-11-27809 2,7317 0,8494 475000 5 Standard 482 2618 06.20A 1500 3,1749 2,7362 0,2514 8670000 8.40e-12 1,0937 3,397,035 2360000 6 Standard 482 2618 06.20B 1500 3 0.1157 2.6 968 0.2426 7300000 9.91e-12 1.1250 3.4133 0.3828 1230000
One option (so as to Peel
and wafer
to combine in a new aspect is your data.frame
is considered Df
):
edit
sorry It does not look like:
df $ NewFactor & LT; -paste ($ peel, df $ wafer df) df $ NewFactor & LT; -factor (df $ NewFactor)
This is the reason why you will give each combination as a factor, but there is no missing combination. You can then use the df $ newFactor
in your boxplot
function.
Comments
Post a Comment